From d0af9dc673224282ddd3d23e974f10d4bdbff46b Mon Sep 17 00:00:00 2001 From: Christopher Watford Date: Thu, 12 Mar 2020 20:39:03 -0400 Subject: [PATCH] Remove unused computeInactiveCampaigns method --- MekHQ/src/mekhq/campaign/CampaignController.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/MekHQ/src/mekhq/campaign/CampaignController.java b/MekHQ/src/mekhq/campaign/CampaignController.java index e0cda011ec6..8158d3bacc3 100644 --- a/MekHQ/src/mekhq/campaign/CampaignController.java +++ b/MekHQ/src/mekhq/campaign/CampaignController.java @@ -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 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. */