From 2521a791d764920c194e8fe299110e98dc2e5ab3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 4 Mar 2016 21:24:29 +0300 Subject: Remove getter getSprite from compoundsprite. --- src/being/compoundsprite.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/being/compoundsprite.h') diff --git a/src/being/compoundsprite.h b/src/being/compoundsprite.h index 797ae767c..2966eec44 100644 --- a/src/being/compoundsprite.h +++ b/src/being/compoundsprite.h @@ -85,9 +85,6 @@ class CompoundSprite notfinal : public Sprite void setSprite(const size_t layer, Sprite *const sprite); - Sprite *getSprite(const size_t layer) const A_WARN_UNUSED - { return mSprites.at(layer); } - void removeSprite(const int layer); void clear(); @@ -127,6 +124,8 @@ class CompoundSprite notfinal : public Sprite int getStartTime() const A_WARN_UNUSED { return mStartTime; } + std::vector mSprites; + private: void redraw() const; @@ -147,7 +146,6 @@ class CompoundSprite notfinal : public Sprite mutable int mOffsetY; int mStartTime; int mLastTime; - std::vector mSprites; #ifndef USE_SDL2 mutable int mNextRedrawTime; #endif -- cgit v1.2.3-70-g09d2