From 0fd810707ef21f8c7a904dd2dd6e1030491b9185 Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 22 Aug 2016 23:04:05 +0200 Subject: [PATCH] Remove unused stopLooping() --- apps/openmw/mwrender/animation.cpp | 10 ---------- apps/openmw/mwrender/animation.hpp | 4 ---- 2 files changed, 14 deletions(-) diff --git a/apps/openmw/mwrender/animation.cpp b/apps/openmw/mwrender/animation.cpp index 29407bc2d..32fa5e600 100644 --- a/apps/openmw/mwrender/animation.cpp +++ b/apps/openmw/mwrender/animation.cpp @@ -873,16 +873,6 @@ namespace MWRender addControllers(); } - void Animation::stopLooping(const std::string& groupname) - { - AnimStateMap::iterator stateiter = mStates.find(groupname); - if(stateiter != mStates.end()) - { - stateiter->second.mLoopCount = 0; - return; - } - } - void Animation::adjustSpeedMult(const std::string &groupname, float speedmult) { AnimStateMap::iterator state(mStates.find(groupname)); diff --git a/apps/openmw/mwrender/animation.hpp b/apps/openmw/mwrender/animation.hpp index 749890ae5..d0191d172 100644 --- a/apps/openmw/mwrender/animation.hpp +++ b/apps/openmw/mwrender/animation.hpp @@ -395,10 +395,6 @@ public: float speedmult, const std::string &start, const std::string &stop, float startpoint, size_t loops, bool loopfallback=false); - /** If the given animation group is currently playing, set its remaining loop count to '0'. - */ - void stopLooping(const std::string& groupName); - /** Adjust the speed multiplier of an already playing animation. */ void adjustSpeedMult (const std::string& groupname, float speedmult);