Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
Signed-off-by: Arjo Chakravarty <arjoc@google.com>
  • Loading branch information
arjo129 committed Jul 9, 2024
1 parent 33d5d4f commit e4174c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/SimulationRunner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ void SimulationRunner::ProcessSystemQueue()
if (0 == pending && !this->needsCleanUp)
return;

// If additional systems are to be added or removed, stop the existing threads.
// If additional systems are to be added or removed, stop the existing
// threads.
this->StopWorkerThreads();

this->needsCleanUp = false;
Expand Down
5 changes: 0 additions & 5 deletions src/SystemManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,6 @@ void SystemManager::ProcessRemovedEntities(
[&](const SystemIfaceWithParent<ISystemConfigureParameters>& system) {
return _ecm.IsMarkedForRemoval(system.parent);
});
//SystemInternal null_sys(nullptr, kNullEntity);
/*this->systems.RemoveIf([&](const SystemInternal& system) {
return _ecm.IsMarkedForRemoval(system.parentEntity);
}, null_sys);*/

RemoveFromVectorIf(this->systems, [&](const SystemInternal& system) {
return _ecm.IsMarkedForRemoval(system.parentEntity);
});
Expand Down

0 comments on commit e4174c4

Please sign in to comment.