mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Refactor: Remove unused getManaAbilities method (#9169)
This commit is contained in:
parent
75c8876746
commit
4cd262c45d
2 changed files with 5 additions and 21 deletions
|
@ -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<T extends Ability> extends List<T>, Serializable {
|
|||
*/
|
||||
Abilities<ActivatedManaAbilityImpl> getActivatedManaAbilities(Zone zone);
|
||||
|
||||
/**
|
||||
* Retrieves a list of all mana abilities (activated and triggered
|
||||
* abilities)
|
||||
*
|
||||
* @param zone
|
||||
* @return
|
||||
*/
|
||||
Abilities<Ability> getManaAbilities(Zone zone);
|
||||
|
||||
/**
|
||||
* Retrieves all {@link ActivatedManaAbilityImpl mana abilities} in the
|
||||
|
|
|
@ -135,14 +135,6 @@ public class AbilitiesImpl<T extends Ability> extends ArrayList<T> implements Ab
|
|||
.collect(Collectors.toCollection(AbilitiesImpl::new));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Abilities<Ability> 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<EvasionAbility> getEvasionAbilities() {
|
||||
return stream()
|
||||
|
|
Loading…
Reference in a new issue