| 530 | |
| 531 | |
| 532 | void Engine::clear_NoLock() { |
| 533 | // Copy lists because we'll be removing while iterating |
| 534 | std::set<ParamHandle*> paramHandles = internal->paramHandles; |
| 535 | for (ParamHandle* paramHandle : paramHandles) { |
| 536 | removeParamHandle_NoLock(paramHandle); |
| 537 | // Don't delete paramHandle because they're normally owned by Module subclasses |
| 538 | } |
| 539 | std::vector<Cable*> cables = internal->cables; |
| 540 | for (Cable* cable : cables) { |
| 541 | removeCable_NoLock(cable); |
| 542 | delete cable; |
| 543 | } |
| 544 | std::vector<Module*> modules = internal->modules; |
| 545 | for (Module* module : modules) { |
| 546 | removeModule_NoLock(module); |
| 547 | delete module; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | |
| 552 | void Engine::stepBlock(int frames) { |
nothing calls this directly
no outgoing calls
no test coverage detected