diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-29 18:17:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-29 18:17:49 +0300 |
commit | 3f2c03e33a929e1b2b78e00a4246216a8ea258a0 (patch) | |
tree | 3ff9eb53b056425100402b277dbbb58ab17a2a8e /src/resources/animation | |
parent | 30c8e376a1c45043863e6ad8b04186eabb711487 (diff) | |
download | manaverse-3f2c03e33a929e1b2b78e00a4246216a8ea258a0.tar.gz manaverse-3f2c03e33a929e1b2b78e00a4246216a8ea258a0.tar.bz2 manaverse-3f2c03e33a929e1b2b78e00a4246216a8ea258a0.tar.xz manaverse-3f2c03e33a929e1b2b78e00a4246216a8ea258a0.zip |
Remove unused function from animation.
Diffstat (limited to 'src/resources/animation')
-rw-r--r-- | src/resources/animation/animation.cpp | 5 | ||||
-rw-r--r-- | src/resources/animation/animation.h | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/resources/animation/animation.cpp b/src/resources/animation/animation.cpp index 1a10f5224..a657823e6 100644 --- a/src/resources/animation/animation.cpp +++ b/src/resources/animation/animation.cpp @@ -55,11 +55,6 @@ void Animation::addTerminator(const int rand) noexcept2 addFrame(nullptr, 0, 0, 0, rand); } -bool Animation::isTerminator(const Frame &candidate) noexcept2 -{ - return (!candidate.image && candidate.type == FrameType::ANIMATION); -} - void Animation::addJump(const std::string &name, const int rand) noexcept2 { Frame frame = { nullptr, 0, 0, 0, rand, FrameType::JUMP, name }; diff --git a/src/resources/animation/animation.h b/src/resources/animation/animation.h index b396bae49..8b99bac1b 100644 --- a/src/resources/animation/animation.h +++ b/src/resources/animation/animation.h @@ -91,11 +91,6 @@ class Animation final : public MemoryCounter std::string getCounterName() const override { return mName; } - /** - * Determines whether the given animation frame is a terminator. - */ - static bool isTerminator(const Frame &phase) noexcept2 A_WARN_UNUSED; - protected: Frames mFrames; std::string mName; |