From 9c64071bc09a73c5f9bce8a162e9dcb89321136d Mon Sep 17 00:00:00 2001 From: Antidote Date: Sat, 25 Jan 2014 21:15:24 -0800 Subject: [PATCH] * Remove updateTexture in SpritePart --- include/SpritePart.hpp | 1 - src/SpritePart.cpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/include/SpritePart.hpp b/include/SpritePart.hpp index a5651dd..c2d1296 100644 --- a/include/SpritePart.hpp +++ b/include/SpritePart.hpp @@ -39,7 +39,6 @@ public: void setRoot(Sprite* root); private: - void updateTexture(); Sprite* m_root; std::string m_name; bool m_hasCollision; diff --git a/src/SpritePart.cpp b/src/SpritePart.cpp index d692fdb..2353e37 100644 --- a/src/SpritePart.cpp +++ b/src/SpritePart.cpp @@ -96,10 +96,7 @@ void SpritePart::setFrames(std::vector frames) } if (!m_currentFrame) - { m_currentFrame = frames[0]; - updateTexture(); - } m_frames = frames; }