aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorCameron Cawley2019-11-21 23:19:14 +0000
committerFilippos Karapetis2019-11-24 22:55:34 +0200
commit574db58b270f8a22cde48a89a5b858b64d7b3cf1 (patch)
treec04376bee2bc1d53cac1f9013df2cd82515daa12 /backends
parent991e7d447bd919934002858dad8e8cb4f9dd1eed (diff)
downloadscummvm-rg350-574db58b270f8a22cde48a89a5b858b64d7b3cf1.tar.gz
scummvm-rg350-574db58b270f8a22cde48a89a5b858b64d7b3cf1.tar.bz2
scummvm-rg350-574db58b270f8a22cde48a89a5b858b64d7b3cf1.zip
ANDROIDSDL: Remove unused graphics manager
Diffstat (limited to 'backends')
-rw-r--r--backends/graphics/androidsdl/androidsdl-graphics.cpp42
-rw-r--r--backends/graphics/androidsdl/androidsdl-graphics.h34
-rw-r--r--backends/module.mk3
-rw-r--r--backends/platform/androidsdl/androidsdl-sdl.cpp4
4 files changed, 1 insertions, 82 deletions
diff --git a/backends/graphics/androidsdl/androidsdl-graphics.cpp b/backends/graphics/androidsdl/androidsdl-graphics.cpp
deleted file mode 100644
index 23a1a86dd6..0000000000
--- a/backends/graphics/androidsdl/androidsdl-graphics.cpp
+++ /dev/null
@@ -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
diff --git a/backends/graphics/androidsdl/androidsdl-graphics.h b/backends/graphics/androidsdl/androidsdl-graphics.h
deleted file mode 100644
index b7ca7c1de8..0000000000
--- a/backends/graphics/androidsdl/androidsdl-graphics.h
+++ /dev/null
@@ -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
diff --git a/backends/module.mk b/backends/module.mk
index 394ccb8ee9..9424e0abcd 100644
--- a/backends/module.mk
+++ b/backends/module.mk
@@ -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
diff --git a/backends/platform/androidsdl/androidsdl-sdl.cpp b/backends/platform/androidsdl/androidsdl-sdl.cpp
index 93da9d42b5..91c0cd4a02 100644
--- a/backends/platform/androidsdl/androidsdl-sdl.cpp
+++ b/backends/platform/androidsdl/androidsdl-sdl.cpp
@@ -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"));