diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-18 21:35:08 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-18 21:35:08 +0100 |
commit | 917bdd0cf855943962ead962869e127a0a63be1d (patch) | |
tree | e4961ff6bdffec3f92a6b5fd808677e85136bea6 | |
parent | 611b4730a9ab19061dbf513ac8da745fc1d730a8 (diff) | |
download | RustAndDust-917bdd0cf855943962ead962869e127a0a63be1d.zip RustAndDust-917bdd0cf855943962ead962869e127a0a63be1d.tar.gz |
Map: remove local unused Engagement instance
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index 2035251..32a8e7d 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -59,7 +59,6 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS private Sound sound; private long soundId = -1; private Animation animationClosure; - private Engagement engagement; private OrderList orderList; @@ -370,8 +369,6 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS { TankOnTank.debug("TurnDone", String.format(" Processed Commands : %d", orderList.size())); - if (engagement != null) - throw new RuntimeException("engagement not cleared"); if (objectives.modifiedCount() > 0) throw new RuntimeException("objectives not cleared"); @@ -382,10 +379,6 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS public void actionDone() { objectives.forget(); - if (engagement != null) { - engagement.dispose(); - engagement = null; - } } // STATES ENTRY -> |