-----------------------------------------------------------------------------
| 241 | |
| 242 | //----------------------------------------------------------------------------- |
| 243 | void UndoManager::clampStack(Vector<UndoAction*> &stack) |
| 244 | { |
| 245 | while(stack.size() > mNumLevels) |
| 246 | { |
| 247 | UndoAction *act = stack.front(); |
| 248 | stack.pop_front(); |
| 249 | |
| 250 | // Call deleteObject() if the action was registered. |
| 251 | if ( act->isProperlyAdded() ) |
| 252 | act->deleteObject(); |
| 253 | else |
| 254 | delete act; |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | void UndoManager::removeAction(UndoAction *action, bool noDelete) |
| 259 | { |
nothing calls this directly
no test coverage detected