From 8825980e1f35cbe76cb7f8c2c0b079ec114bdbcb Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Thu, 18 Jul 2019 00:13:06 +0530 Subject: HDB: Remove redundant custom free() function --- engines/hdb/gfx.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'engines/hdb/gfx.cpp') 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(); -} - } -- cgit v1.2.3