Skip to content

Commit 6fbc9f2

Browse files
committed
Bugfix for Release
1 parent 7639872 commit 6fbc9f2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/dsm/headers/Node.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,7 @@ namespace dsm {
4848
++m_agentCounter;
4949
}
5050

51-
void Intersection::removeAgent(Id agentId) {
52-
assert((void("Trying to remove an agent not on the node"),
53-
std::erase_if(m_agents, [agentId](const auto& p) {
54-
return p.second == agentId;
55-
}) == 1));
56-
}
51+
void Intersection::removeAgent(Id agentId) { m_agents.erase(agentId); }
5752

5853
Size Intersection::agentCounter() {
5954
Size copy{m_agentCounter};

0 commit comments

Comments
 (0)