Tilemap: Remove RGSS2 viewport setter

This class is not used in RGSS2 at all.
This commit is contained in:
Jonas Kulla 2014-08-28 15:37:04 +02:00
parent c88b4b03d6
commit 28421a0ce5
2 changed files with 1 additions and 25 deletions

View File

@ -1276,26 +1276,6 @@ DEF_ATTR_RD_SIMPLE(Tilemap, Visible, bool, p->visible)
DEF_ATTR_RD_SIMPLE(Tilemap, OX, int, p->offset.x)
DEF_ATTR_RD_SIMPLE(Tilemap, OY, int, p->offset.y)
#ifdef RGSS2
void Tilemap::setViewport(Viewport *value)
{
if (p->viewport == value)
return;
p->viewport = value;
if (!p->tilemapReady)
return;
p->elem.ground->setViewport(value);
for (size_t i = 0; i < zlayersMax; ++i)
p->elem.zlayers[i]->setViewport(value);
}
#endif
void Tilemap::setTileset(Bitmap *value)
{
if (p->tileset == value)

View File

@ -56,12 +56,8 @@ public:
void update();
Autotiles &getAutotiles() const;
#ifndef RGSS2
Viewport *getViewport() const;
#else
DECL_ATTR( Viewport, Viewport* )
#endif
DECL_ATTR( Tileset, Bitmap* )
DECL_ATTR( MapData, Table* )
DECL_ATTR( FlashData, Table* )