Remove redundant getPlayerAnimation function

This commit is contained in:
scrawl 2015-12-18 17:44:57 +01:00
parent c9ca5bc946
commit ed101ad35a
3 changed files with 0 additions and 8 deletions

View file

@ -714,11 +714,6 @@ namespace MWRender
return mObjects->getAnimation(ptr); return mObjects->getAnimation(ptr);
} }
MWRender::Animation* RenderingManager::getPlayerAnimation()
{
return mPlayerAnimation.get();
}
void RenderingManager::setupPlayer(const MWWorld::Ptr &player) void RenderingManager::setupPlayer(const MWWorld::Ptr &player)
{ {
if (!mPlayerNode) if (!mPlayerNode)

View file

@ -137,7 +137,6 @@ namespace MWRender
Animation* getAnimation(const MWWorld::Ptr& ptr); Animation* getAnimation(const MWWorld::Ptr& ptr);
const Animation* getAnimation(const MWWorld::ConstPtr& ptr) const; const Animation* getAnimation(const MWWorld::ConstPtr& ptr) const;
Animation* getPlayerAnimation();
void addWaterRippleEmitter(const MWWorld::Ptr& ptr); void addWaterRippleEmitter(const MWWorld::Ptr& ptr);
void removeWaterRippleEmitter(const MWWorld::Ptr& ptr); void removeWaterRippleEmitter(const MWWorld::Ptr& ptr);

View file

@ -2109,8 +2109,6 @@ namespace MWWorld
MWRender::Animation* World::getAnimation(const MWWorld::Ptr &ptr) MWRender::Animation* World::getAnimation(const MWWorld::Ptr &ptr)
{ {
if (ptr == getPlayerPtr())
return mRendering->getPlayerAnimation();
return mRendering->getAnimation(ptr); return mRendering->getAnimation(ptr);
} }