| 230 | } |
| 231 | |
| 232 | void State::clear() { |
| 233 | for (Action* action : actions) { |
| 234 | delete action; |
| 235 | } |
| 236 | actions.clear(); |
| 237 | actionIndex = 0; |
| 238 | savedIndex = -1; |
| 239 | } |
| 240 | |
| 241 | void State::push(Action* action) { |
| 242 | // Delete all future actions (if we have undone some actions) |
nothing calls this directly
no outgoing calls
no test coverage detected