mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 04:22:01 -08:00
refactor: cleanup unneeded method (closes #12547)
This commit is contained in:
parent
f1bf8a7ebd
commit
7969ffb548
3 changed files with 6 additions and 40 deletions
|
|
@ -32,11 +32,6 @@ public interface TargetPointer extends Serializable, Copyable<TargetPointer> {
|
|||
*/
|
||||
UUID getFirst(Game game, Ability source);
|
||||
|
||||
/**
|
||||
* Return first actual target data (null on outdated targets)
|
||||
*/
|
||||
FixedTarget getFirstAsFixedTarget(Game game, Ability source);
|
||||
|
||||
TargetPointer copy();
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
package mage.target.targetpointer;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author JayDi85
|
||||
|
|
@ -57,13 +53,4 @@ public abstract class TargetPointerImpl implements TargetPointer {
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final FixedTarget getFirstAsFixedTarget(Game game, Ability source) {
|
||||
UUID firstId = this.getFirst(game, source);
|
||||
if (firstId != null) {
|
||||
return new FixedTarget(firstId, game.getState().getZoneChangeCounter(firstId));
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue