From 3f2c03e33a929e1b2b78e00a4246216a8ea258a0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 Dec 2016 18:17:49 +0300 Subject: Remove unused function from animation. --- src/resources/animation/animation.cpp | 5 ----- src/resources/animation/animation.h | 5 ----- 2 files changed, 10 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2