Skip to content

Commit

Permalink
Remove redundant code for reinserting agents at their destination
Browse files Browse the repository at this point in the history
  • Loading branch information
Grufoony committed Dec 13, 2023
1 parent 43348e3 commit bd70f69
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/dsm/headers/Dynamics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,8 @@ namespace dsm {
Agent<Id, Size, Delay> newAgent{this->m_agents[agentId]->id(), this->m_agents[agentId]->itineraryId()};
this->removeAgent(agentId);
this->addAgent(newAgent);
std:: cout << "Agent " << agentId << " has reached its destination and has been reinserted" << std::endl;
} else {
this->removeAgent(agentId);
std:: cout << "Agent " << agentId << " has reached its destination and has been reinserted" << std::endl;
}
continue;
}
Expand Down

0 comments on commit bd70f69

Please sign in to comment.