From ab44cd63a1d093acc314832df68bf6e61c400ee3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 7 Aug 2013 15:05:48 -0700 Subject: [PATCH] Remove unused function --- apps/openmw/mwrender/animation.cpp | 8 -------- apps/openmw/mwrender/animation.hpp | 3 --- 2 files changed, 11 deletions(-) diff --git a/apps/openmw/mwrender/animation.cpp b/apps/openmw/mwrender/animation.cpp index 055d14ecb..37cebcf0b 100644 --- a/apps/openmw/mwrender/animation.cpp +++ b/apps/openmw/mwrender/animation.cpp @@ -951,14 +951,6 @@ Ogre::AxisAlignedBox Animation::getWorldBounds() } -bool Animation::isPriorityActive(int priority) const -{ - for (AnimStateMap::const_iterator it = mStates.begin(); it != mStates.end(); ++it) - if (it->second.mPriority == priority) - return true; - return false; -} - Ogre::TagPoint *Animation::attachObjectToBone(const Ogre::String &bonename, Ogre::MovableObject *obj) { Ogre::TagPoint *tag = NULL; diff --git a/apps/openmw/mwrender/animation.hpp b/apps/openmw/mwrender/animation.hpp index b0e4f6dbd..2215fc582 100644 --- a/apps/openmw/mwrender/animation.hpp +++ b/apps/openmw/mwrender/animation.hpp @@ -177,9 +177,6 @@ public: bool hasAnimation(const std::string &anim); - bool isPriorityActive (int priority) const; - ///< Is there an animation playing with the given priority? - // Specifies the axis' to accumulate on. Non-accumulated axis will just // move visually, but not affect the actual movement. Each x/y/z value // should be on the scale of 0 to 1.