mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Guava migration - Inline Iterables.removeAll (Collection overload)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -1255,7 +1255,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
||||
final List<String> invalidTypes, final boolean isOptional) {
|
||||
final List<String> types = Lists.newArrayList(validTypes);
|
||||
if (invalidTypes != null && !invalidTypes.isEmpty()) {
|
||||
Iterables.removeAll(types, invalidTypes);
|
||||
types.removeAll(invalidTypes);
|
||||
}
|
||||
if (kindOfType.equals("Creature")) {
|
||||
sortCreatureTypes(types);
|
||||
|
||||
Reference in New Issue
Block a user