Removed unused function.

This commit is contained in:
Felix Ableitner 2013-04-27 21:31:08 +02:00
parent a5b01bf3c5
commit 454156eabe
2 changed files with 1 additions and 14 deletions

View file

@ -137,13 +137,3 @@ TileManager::raycast(const sf::Vector2f& lineStart,
}
return true;
}
/**
* \copydoc sf::Drawable::draw
*/
void
TileManager::draw(sf::RenderTarget& target, sf::RenderStates states) const {
for (auto it = mTiles.begin(); it != mTiles.end(); it++) {
target.draw((**it), states);
}
}

View file

@ -12,7 +12,7 @@
class World;
class TileManager : public sf::Drawable {
class TileManager {
public:
enum class Type {
FLOOR,
@ -37,9 +37,6 @@ public:
private:
class Tile;
private:
void draw(sf::RenderTarget& target, sf::RenderStates states) const;
private:
World& mWorld;
std::vector<std::shared_ptr<Tile> > mTiles;