From 2cbe9ac217ebc0212b5bc9c69f6b95d7f141e962 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 16:33:32 +0300 Subject: remove unused variable from maplayer. --- src/map.cpp | 2 +- src/maplayer.cpp | 6 ++---- src/maplayer.h | 4 +--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/map.cpp b/src/map.cpp index 652f1c041..564f673da 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -161,7 +161,7 @@ Map::Map(const int width, const int height, mActorFixY(0), mVersion(0), mSpecialLayer(new SpecialLayer(width, height)), - mTempLayer(new SpecialLayer(width, height, true)), + mTempLayer(new SpecialLayer(width, height)), mObjects(new ObjectsLayer(width, height)), mFringeLayer(nullptr), mLastX(-1), diff --git a/src/maplayer.cpp b/src/maplayer.cpp index 686ab7a35..67df3930b 100644 --- a/src/maplayer.cpp +++ b/src/maplayer.cpp @@ -571,12 +571,10 @@ int MapLayer::getTileDrawWidth(const Image *img, return c; } -SpecialLayer::SpecialLayer(const int width, const int height, - const bool drawSprites) : +SpecialLayer::SpecialLayer(const int width, const int height) : mWidth(width), mHeight(height), - mTiles(new MapItem*[mWidth * mHeight]), - mDrawSprites(drawSprites) + mTiles(new MapItem*[mWidth * mHeight]) { std::fill_n(mTiles, mWidth * mHeight, static_cast(nullptr)); } diff --git a/src/maplayer.h b/src/maplayer.h index 62c6e86b7..ad74ad7d2 100644 --- a/src/maplayer.h +++ b/src/maplayer.h @@ -200,8 +200,7 @@ class SpecialLayer final friend class Map; friend class MapLayer; - SpecialLayer(const int width, const int height, - const bool drawSprites = false); + SpecialLayer(const int width, const int height); A_DELETE_COPY(SpecialLayer) @@ -225,7 +224,6 @@ class SpecialLayer final int mWidth; int mHeight; MapItem **mTiles; - bool mDrawSprites; }; class MapItem final -- cgit v1.2.3-70-g09d2