diff --git a/src/dsm/headers/Node.cpp b/src/dsm/headers/Node.cpp index 39219450..33f97772 100644 --- a/src/dsm/headers/Node.cpp +++ b/src/dsm/headers/Node.cpp @@ -48,12 +48,7 @@ namespace dsm { ++m_agentCounter; } - void Intersection::removeAgent(Id agentId) { - assert((void("Trying to remove an agent not on the node"), - std::erase_if(m_agents, [agentId](const auto& p) { - return p.second == agentId; - }) == 1)); - } + void Intersection::removeAgent(Id agentId) { m_agents.erase(agentId); } Size Intersection::agentCounter() { Size copy{m_agentCounter};