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