jill/src/main/java/io/github/agentsoz/jill/core/IntentionSelector.java
private void removeFinishedAgents(Set<Integer> toRemove) {
    if (!toRemove.isEmpty()) {
      for (int i : toRemove) {
        activeAgents.remove(i);
      }
      toRemove.clear();
    }
  }
private void removeFinishedAgents(Set<Integer> toRemove) {
    if (!toRemove.isEmpty()) {
      for (int i : toRemove) {
        activeAgents.remove(i);
      }
      toRemove.clear();
    }
  }
private void removeFinishedAgents ( Set < Integer > toRemove ) { if ( ! toRemove . isEmpty ( ) ) { for ( int i : toRemove ) { activeAgents . remove ( i ) ; } toRemove . clear ( ) ; } }
Removes the given list of agents from the list of active agents.

@param toRemove the list of agent IDs to remove
Removes the given list of agents from the list of active agents .