diff options
author | Nipun Garg | 2019-07-18 00:13:06 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:22 +0200 |
commit | 8825980e1f35cbe76cb7f8c2c0b079ec114bdbcb (patch) | |
tree | 3c0f34989c6adeb6db11549be73a94aee5cf7704 /engines/hdb/gfx.cpp | |
parent | f5aff6c72def2c688621220684fc12e664c643bd (diff) | |
download | scummvm-rg350-8825980e1f35cbe76cb7f8c2c0b079ec114bdbcb.tar.gz scummvm-rg350-8825980e1f35cbe76cb7f8c2c0b079ec114bdbcb.tar.bz2 scummvm-rg350-8825980e1f35cbe76cb7f8c2c0b079ec114bdbcb.zip |
HDB: Remove redundant custom free() function
Diffstat (limited to 'engines/hdb/gfx.cpp')
-rw-r--r-- | engines/hdb/gfx.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 54746c39d1..b493bb625a 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -998,8 +998,8 @@ void Gfx::drawBonusStars() { // timed out? if (_starsInfo.totalTime < g_hdb->getTimeSlice()) { _starsInfo.active = false; - _starsInfo.gfx[0]->free(); - _starsInfo.gfx[1]->free(); + delete _starsInfo.gfx[0]; + delete _starsInfo.gfx[1]; _starsInfo.gfx[0] = _starsInfo.gfx[1] = 0; } } @@ -1088,10 +1088,6 @@ int Picture::drawMasked(int x, int y, int alpha) { return 0; } -void Picture::free() { - _surface.free(); -} - Tile::Tile() : _flags(0), _name("") { _surface.create(32, 32, g_hdb->_format); } @@ -1146,8 +1142,4 @@ int Tile::drawMasked(int x, int y, int alpha) { return 0; } -void Tile::free() { - _surface.free(); -} - } |