| 39 | } |
| 40 | |
| 41 | void ContractionState::Clear() { |
| 42 | delete visible; |
| 43 | visible = 0; |
| 44 | delete expanded; |
| 45 | expanded = 0; |
| 46 | delete heights; |
| 47 | heights = 0; |
| 48 | delete displayLines; |
| 49 | displayLines = 0; |
| 50 | linesInDocument = 1; |
| 51 | } |
| 52 | |
| 53 | int ContractionState::LinesInDoc() const { |
| 54 | if (OneToOne()) { |
nothing calls this directly
no outgoing calls
no test coverage detected