Skip to content

Commit

Permalink
Remove unused computeInactiveCampaigns method
Browse files Browse the repository at this point in the history
  • Loading branch information
sixlettervariables committed Mar 13, 2020
1 parent ad4b36a commit d0af9dc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions MekHQ/src/mekhq/campaign/CampaignController.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,6 @@ public int getActiveCampaignCount() {
return remoteCampaigns.reduceValuesToInt(Integer.MAX_VALUE, rc -> rc.isActive() ? 1 : 0, 0, (x, acc) -> x + acc);
}

/**
* Computes the set of inactive campaigns from a set of active campaign IDs.
*/
public void computeInactiveCampaigns(Set<UUID> activeCampaigns) {
for (UUID clientId : remoteCampaigns.keySet()) {
remoteCampaigns.computeIfPresent(clientId, (key, rc) -> activeCampaigns.contains(clientId) ? rc : rc.withActive(false));
}
}

/**
* Advances the local {@link Campaign} to the next day.
*/
Expand Down

0 comments on commit d0af9dc

Please sign in to comment.