From d9838926bee52d1ada15a59dce89d76813533480 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 May 2015 14:17:58 +0300 Subject: Remove some useless methods from being. --- src/being/being.cpp | 6 ++++-- src/being/being.h | 15 --------------- 2 files changed, 4 insertions(+), 17 deletions(-) (limited to 'src/being') diff --git a/src/being/being.cpp b/src/being/being.cpp index 472836140..7bf72b26f 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -1578,8 +1578,10 @@ void Being::logic() if (mAction == BeingAction::MOVE || mNeedPosUpdate) { - const int xOffset = getXOffset(); - const int yOffset = getYOffset(); + const int xOffset = getOffset( + BeingDirection::LEFT, BeingDirection::RIGHT); + const int yOffset = getOffset( + BeingDirection::UP, BeingDirection::DOWN); int offset = xOffset; if (!offset) offset = yOffset; diff --git a/src/being/being.h b/src/being/being.h index 9f9f3992d..42fd65b86 100644 --- a/src/being/being.h +++ b/src/being/being.h @@ -136,24 +136,9 @@ class Being notfinal : public ActorSprite, /** * Makes this being take the next tile of its path. - * TODO: Used by eAthena only? */ virtual void nextTile(); - /** - * Get the current X pixel offset. - * TODO: Used by eAthena only? - */ - int getXOffset() const A_WARN_UNUSED - { return getOffset(BeingDirection::LEFT, BeingDirection::RIGHT); } - - /** - * Get the current Y pixel offset. - * TODO: Used by eAthena only? - */ - int getYOffset() const A_WARN_UNUSED - { return getOffset(BeingDirection::UP, BeingDirection::DOWN); } - /** * Creates a path for the being from current position to ex and ey */ -- cgit v1.2.3-70-g09d2