ANDROIDSDL: Remove unused graphics manager

This commit is contained in:
Cameron Cawley 2019-11-21 23:19:14 +00:00 committed by Filippos Karapetis
parent 991e7d447b
commit 574db58b27
4 changed files with 1 additions and 82 deletions

View File

@ -1,42 +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 "common/scummsys.h"
#if defined(ANDROIDSDL)
#include "backends/graphics/androidsdl/androidsdl-graphics.h"
#include "backends/events/androidsdl/androidsdl-events.h"
#include "common/mutex.h"
#include "common/textconsole.h"
#include "graphics/font.h"
#include "graphics/fontman.h"
#include "graphics/scaler.h"
#include "graphics/scaler/aspect.h"
#include "graphics/scaler/downscaler.h"
#include "graphics/surface.h"
AndroidSdlGraphicsManager::AndroidSdlGraphicsManager(SdlEventSource *sdlEventSource, SdlWindow *window)
: SurfaceSdlGraphicsManager(sdlEventSource, window) {
}
#endif

View File

@ -1,34 +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 BACKENDS_GRAPHICS_SDL_ANDROIDSDL_H
#define BACKENDS_GRAPHICS_SDL_ANDROIDSDL_H
#include "backends/graphics/surfacesdl/surfacesdl-graphics.h"
class AndroidSdlGraphicsManager : public SurfaceSdlGraphicsManager {
public:
AndroidSdlGraphicsManager(SdlEventSource *sdlEventSource, SdlWindow *window);
};
#endif

View File

@ -223,8 +223,7 @@ endif
ifeq ($(BACKEND),androidsdl)
MODULE_OBJS += \
events/androidsdl/androidsdl-events.o \
graphics/androidsdl/androidsdl-graphics.o
events/androidsdl/androidsdl-events.o
endif
ifdef AMIGAOS

View File

@ -26,7 +26,6 @@
#include "backends/platform/androidsdl/androidsdl-sdl.h"
#include "backends/events/androidsdl/androidsdl-events.h"
#include "backends/graphics/androidsdl/androidsdl-graphics.h"
#include <SDL_android.h>
#include <SDL_screenkeyboard.h>
@ -36,9 +35,6 @@ void OSystem_ANDROIDSDL::initBackend() {
if (_eventSource == 0)
_eventSource = new AndroidSdlEventSource();
if (_graphicsManager == 0)
_graphicsManager = new AndroidSdlGraphicsManager(_eventSource, _window);
if (!ConfMan.hasKey("browser_lastpath") || (ConfMan.hasKey("browser_lastpath") && (ConfMan.get("browser_lastpath") == "/storage")))
ConfMan.set("browser_lastpath", getenv("SDCARD"));