diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-30 01:19:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-30 13:11:34 +0300 |
commit | 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 (patch) | |
tree | 4a0a5fd220828b92ef96446fe38dbe67ff446c6c /src/maplayer.h | |
parent | 2a70a50c785ce639b76141a3a6887836d22fe12c (diff) | |
download | mv-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.gz mv-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.bz2 mv-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.tar.xz mv-6b1684d33dec02eb6308bb3d8d3707f4d5252ba5.zip |
Add unused warnings to some files.
Diffstat (limited to 'src/maplayer.h')
-rw-r--r-- | src/maplayer.h | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/src/maplayer.h b/src/maplayer.h index 134a7ac39..e7f9d866f 100644 --- a/src/maplayer.h +++ b/src/maplayer.h @@ -149,7 +149,7 @@ class MapLayer final: public ConfigListener const Actors *const actors, const int mDebugFlags, const int yFix) const; - bool isFringeLayer() const + bool isFringeLayer() const A_WARN_UNUSED { return mIsFringeLayer; } void setSpecialLayer(SpecialLayer *const val) @@ -158,22 +158,16 @@ class MapLayer final: public ConfigListener void setTempLayer(SpecialLayer *const val) { mTempLayer = val; } - int getWidth() const + int getWidth() const A_WARN_UNUSED { return mWidth; } - int getHeight() const + int getHeight() const A_WARN_UNUSED { return mHeight; } -// void setTileInfo(int x, int y, int width, int cnt); - -// void getTileInfo(int x, int y, int &width, int &cnt) const; - void optionChanged(const std::string &value) override; int getTileDrawWidth(const Image *img, - const int endX, int &width) const; - -// void initTileInfo(); + const int endX, int &width) const A_WARN_UNUSED; private: int mX, mY; @@ -206,7 +200,7 @@ class SpecialLayer final int endX, int endY, const int scrollX, const int scrollY) const; - MapItem* getTile(const int x, const int y) const; + MapItem* getTile(const int x, const int y) const A_WARN_UNUSED; void setTile(const int x, const int y, MapItem *const item); @@ -263,26 +257,26 @@ class MapItem final ~MapItem(); - int getType() const + int getType() const A_WARN_UNUSED { return mType; } void setType(const int type); void setPos(const int x, const int y); - int getX() const + int getX() const A_WARN_UNUSED { return mX; } - int getY() const + int getY() const A_WARN_UNUSED { return mY; } - const std::string &getComment() const + const std::string &getComment() const A_WARN_UNUSED { return mComment; } void setComment(std::string comment) { mComment = comment; } - const std::string &getName() const + const std::string &getName() const A_WARN_UNUSED { return mName; } void setName(std::string name) @@ -313,7 +307,8 @@ class ObjectsLayer final const unsigned x, const unsigned y, unsigned dx, unsigned dy); - MapObjectList *getAt(const unsigned x, const unsigned y) const; + MapObjectList *getAt(const unsigned x, + const unsigned y) const A_WARN_UNUSED; private: MapObjectList **mTiles; unsigned mWidth; |