summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-29 18:17:49 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-29 18:17:49 +0300
commit3f2c03e33a929e1b2b78e00a4246216a8ea258a0 (patch)
tree3ff9eb53b056425100402b277dbbb58ab17a2a8e /src
parent30c8e376a1c45043863e6ad8b04186eabb711487 (diff)
downloadmanaplus-3f2c03e33a929e1b2b78e00a4246216a8ea258a0.tar.gz
manaplus-3f2c03e33a929e1b2b78e00a4246216a8ea258a0.tar.bz2
manaplus-3f2c03e33a929e1b2b78e00a4246216a8ea258a0.tar.xz
manaplus-3f2c03e33a929e1b2b78e00a4246216a8ea258a0.zip
Remove unused function from animation.
Diffstat (limited to 'src')
-rw-r--r--src/resources/animation/animation.cpp5
-rw-r--r--src/resources/animation/animation.h5
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;