refactor: cleanup unneeded method (closes #12547)

This commit is contained in:
xenohedron 2024-08-14 22:46:52 -04:00
parent f1bf8a7ebd
commit 7969ffb548
3 changed files with 6 additions and 40 deletions

View file

@ -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();
/**

View file

@ -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;
}
}