From 0c29eff799934fb3d624f3d0318c2a9617820a55 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 24 Jul 2019 12:36:48 +0200 Subject: HDB: Remove unused console.cpp --- engines/hdb/console.cpp | 38 -------------------------------------- engines/hdb/console.h | 40 ---------------------------------------- engines/hdb/hdb.cpp | 4 ---- engines/hdb/hdb.h | 3 --- engines/hdb/module.mk | 1 - 5 files changed, 86 deletions(-) delete mode 100644 engines/hdb/console.cpp delete mode 100644 engines/hdb/console.h (limited to 'engines') diff --git a/engines/hdb/console.cpp b/engines/hdb/console.cpp deleted file mode 100644 index 5cb45cf823..0000000000 --- a/engines/hdb/console.cpp +++ /dev/null @@ -1,38 +0,0 @@ -/* ScummVM - Graphic Adventure Engine - * - * ScummVM is the legal property of its developers, whose names - * are too numerous to list here. Please refer to the COPYRIGHT - * file distributed with this source distribution. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - */ - -#include "gui/debugger.h" - -#include "hdb/hdb.h" -#include "hdb/console.h" - -namespace HDB { - -Console::Console() { - _visible = true; -} - -Console::~Console() { - _visible = false; -} - -} // End of namespace HDB diff --git a/engines/hdb/console.h b/engines/hdb/console.h deleted file mode 100644 index 9b77d41713..0000000000 --- a/engines/hdb/console.h +++ /dev/null @@ -1,40 +0,0 @@ -/* ScummVM - Graphic Adventure Engine -* -* ScummVM is the legal property of its developers, whose names -* are too numerous to list here. Please refer to the COPYRIGHT -* file distributed with this source distribution. -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version 2 -* of the License, or (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -* -*/ - -#ifndef HDB_CONSOLE_H -#define HDB_CONSOLE_H - -#include "gui/debugger.h" - -namespace HDB { - -class Game; - -class Console : public GUI::Debugger { -public: - explicit Console(); - virtual ~Console(); -private: - bool _visible; -}; -} -#endif diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index f2f20a28c6..67978f012e 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -32,7 +32,6 @@ #include "hdb/hdb.h" #include "hdb/gfx.h" -#include "hdb/console.h" #include "hdb/menu.h" #include "hdb/mpc.h" @@ -43,7 +42,6 @@ namespace HDB { HDBGame* g_hdb; HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc) { - _console = nullptr; _format = Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0); _systemInit = false; g_hdb = this; @@ -77,7 +75,6 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst } HDBGame::~HDBGame() { - delete _console; delete _fileMan; delete _gfx; delete _lua; @@ -858,7 +855,6 @@ Common::Error HDBGame::run() { // Initializes Graphics initGraphics(kScreenWidth, kScreenHeight, &_format); - _console = new Console(); #ifdef USE_MAD Common::SeekableReadStream *soundStream = _fileMan->findFirstData("M00_AIRLOCK_01_MP3", TYPE_BINARY); diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 36f5142f2c..d20f40d705 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -70,7 +70,6 @@ enum { #include "hdb/ai.h" #include "hdb/ai-player.h" -#include "hdb/console.h" #include "hdb/file-manager.h" #include "hdb/input.h" #include "hdb/lua-script.h" @@ -339,8 +338,6 @@ private: uint32 _tiempo; - Console *_console; - // Game Variables bool _systemInit; diff --git a/engines/hdb/module.mk b/engines/hdb/module.mk index e3e56eb593..e3d95dbbae 100644 --- a/engines/hdb/module.mk +++ b/engines/hdb/module.mk @@ -10,7 +10,6 @@ MODULE_OBJS := \ ai-player.o \ ai-use.o \ ai-waypoint.o \ - console.o \ detection.o \ file-manager.o \ gfx.o \ -- cgit v1.2.3