From 1e0cf55637838d7f212e1b442e202360510ae0d2 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 | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/MekHQ/src/mekhq/campaign/CampaignController.java b/MekHQ/src/mekhq/campaign/CampaignController.java index e0cda011ec6..2faa8155776 100644 --- a/MekHQ/src/mekhq/campaign/CampaignController.java +++ b/MekHQ/src/mekhq/campaign/CampaignController.java @@ -20,7 +20,6 @@ import java.util.Collection; import java.util.Collections; -import java.util.Set; import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; @@ -168,15 +167,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. */