diff --git a/Mage/src/main/java/mage/abilities/Abilities.java b/Mage/src/main/java/mage/abilities/Abilities.java index 56133529ad..ffcb087403 100644 --- a/Mage/src/main/java/mage/abilities/Abilities.java +++ b/Mage/src/main/java/mage/abilities/Abilities.java @@ -1,6 +1,11 @@ package mage.abilities; +import mage.abilities.keyword.ProtectionAbility; +import mage.abilities.mana.ActivatedManaAbilityImpl; +import mage.constants.Zone; +import mage.game.Game; + import java.io.Serializable; import java.util.Collection; import java.util.List; @@ -8,11 +13,6 @@ import java.util.Optional; import java.util.UUID; import java.util.function.Predicate; -import mage.abilities.keyword.ProtectionAbility; -import mage.abilities.mana.ActivatedManaAbilityImpl; -import mage.constants.Zone; -import mage.game.Game; - /** * Represents a collection of {@link Ability Abilities}. This is the top most * interface for this. @@ -75,14 +75,6 @@ public interface Abilities extends List, Serializable { */ Abilities getActivatedManaAbilities(Zone zone); - /** - * Retrieves a list of all mana abilities (activated and triggered - * abilities) - * - * @param zone - * @return - */ - Abilities getManaAbilities(Zone zone); /** * Retrieves all {@link ActivatedManaAbilityImpl mana abilities} in the diff --git a/Mage/src/main/java/mage/abilities/AbilitiesImpl.java b/Mage/src/main/java/mage/abilities/AbilitiesImpl.java index 0bab0434c0..8d40298c68 100644 --- a/Mage/src/main/java/mage/abilities/AbilitiesImpl.java +++ b/Mage/src/main/java/mage/abilities/AbilitiesImpl.java @@ -135,14 +135,6 @@ public class AbilitiesImpl extends ArrayList implements Ab .collect(Collectors.toCollection(AbilitiesImpl::new)); } - @Override - public Abilities getManaAbilities(Zone zone) { - return stream() - .filter(ability -> ability.getAbilityType() == AbilityType.MANA) - .filter(ability -> ability.getZone().match(zone)) - .collect(Collectors.toCollection(AbilitiesImpl::new)); - } - @Override public Abilities getEvasionAbilities() { return stream()