diff --git a/forge-core/src/main/java/forge/util/Iterables.java b/forge-core/src/main/java/forge/util/Iterables.java index c3e85351072..05efef2204a 100644 --- a/forge-core/src/main/java/forge/util/Iterables.java +++ b/forge-core/src/main/java/forge/util/Iterables.java @@ -83,10 +83,6 @@ public class Iterables { return iterable.removeIf(test); } - public static boolean removeAll(Collection removeFrom, Collection toRemove) { - return removeFrom.removeAll(toRemove); - } - public static int size(Collection collection) { return collection.size(); } diff --git a/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java b/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java index 525dd6dd4d8..50d47dce45e 100644 --- a/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java +++ b/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java @@ -1255,7 +1255,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont final List invalidTypes, final boolean isOptional) { final List types = Lists.newArrayList(validTypes); if (invalidTypes != null && !invalidTypes.isEmpty()) { - Iterables.removeAll(types, invalidTypes); + types.removeAll(invalidTypes); } if (kindOfType.equals("Creature")) { sortCreatureTypes(types);