summaryrefslogtreecommitdiff
path: root/src/compoundsprite.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-28 23:36:15 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-29 13:24:20 +0100
commit8e4fe8414eed9fc4934a0d0e34eee578e0216dc7 (patch)
tree1e83aa3712bd2f2b5da4a1ddc5226563215ff1be /src/compoundsprite.cpp
parent3cd5ac3ced565c86a5e5ca4fdb336e91ba55f524 (diff)
downloadmana-8e4fe8414eed9fc4934a0d0e34eee578e0216dc7.tar.gz
mana-8e4fe8414eed9fc4934a0d0e34eee578e0216dc7.tar.bz2
mana-8e4fe8414eed9fc4934a0d0e34eee578e0216dc7.tar.xz
mana-8e4fe8414eed9fc4934a0d0e34eee578e0216dc7.zip
Removed Sprite::getCurrentFrame and Sprite::getFrameCount
They are apparently no longer being used. Reviewed-by: Erik Schilling
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r--src/compoundsprite.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp
index fc782980..cd07ca51 100644
--- a/src/compoundsprite.cpp
+++ b/src/compoundsprite.cpp
@@ -163,26 +163,6 @@ bool CompoundSprite::drawnWhenBehind() const
return (getNumberOfLayers() == 1);
}
-size_t CompoundSprite::getCurrentFrame() const
-{
- SpriteConstIterator it, it_end;
- for (it = mSprites.begin(), it_end = mSprites.end(); it != it_end; it++)
- if (*it)
- return (*it)->getCurrentFrame();
-
- return 0;
-}
-
-size_t CompoundSprite::getFrameCount() const
-{
- SpriteConstIterator it, it_end;
- for (it = mSprites.begin(), it_end = mSprites.end(); it != it_end; it++)
- if (*it)
- return (*it)->getFrameCount();
-
- return 0;
-}
-
void CompoundSprite::addSprite(Sprite *sprite)
{
mSprites.push_back(sprite);
@@ -232,35 +212,6 @@ void CompoundSprite::ensureSize(size_t layerCount)
mSprites.resize(layerCount);
}
-/**
- * Returns the curent frame in the current animation of the given layer.
- */
-size_t CompoundSprite::getCurrentFrame(size_t layer)
-{
- if (layer >= mSprites.size())
- return 0;
-
- if (Sprite *s = getSprite(layer))
- return s->getCurrentFrame();
-
- return 0;
-}
-
-/**
- * Returns the frame count in the current animation of the given layer.
- */
-size_t CompoundSprite::getFrameCount(size_t layer)
-{
- if (layer >= mSprites.size())
- return 0;
-
- Sprite *s = getSprite(layer);
- if (s)
- return s->getFrameCount();
-
- return 0;
-}
-
int CompoundSprite::getDuration() const
{
int duration = 0;