aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorPeter Bozsó2016-07-26 19:30:44 +0200
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitb68bd78b444f9f533796ba37282c66688adb5f52 (patch)
treee91839ca7b4ccc702088cecff16cf58e93929f02 /backends
parent9665719b6624904d05202284e5fc4024cb827332 (diff)
downloadscummvm-rg350-b68bd78b444f9f533796ba37282c66688adb5f52.tar.gz
scummvm-rg350-b68bd78b444f9f533796ba37282c66688adb5f52.tar.bz2
scummvm-rg350-b68bd78b444f9f533796ba37282c66688adb5f52.zip
CLOUD: Remove unused removePathHandler(), make addPathHandler() private
Diffstat (limited to 'backends')
-rw-r--r--backends/networking/sdl_net/localwebserver.cpp6
-rw-r--r--backends/networking/sdl_net/localwebserver.h3
2 files changed, 1 insertions, 8 deletions
diff --git a/backends/networking/sdl_net/localwebserver.cpp b/backends/networking/sdl_net/localwebserver.cpp
index 8a40aed697..6da27a668f 100644
--- a/backends/networking/sdl_net/localwebserver.cpp
+++ b/backends/networking/sdl_net/localwebserver.cpp
@@ -153,12 +153,6 @@ void LocalWebserver::addPathHandler(Common::String path, ClientHandlerCallback h
_pathHandlers[path] = handler;
}
-void LocalWebserver::removePathHandler(Common::String path) {
- if (!_pathHandlers.contains(path))
- warning("LocalWebserver::removePathHandler: no handler known for this path");
- _pathHandlers.erase(path);
-}
-
Common::String LocalWebserver::getAddress() { return _address; }
IndexPageHandler &LocalWebserver::indexPageHandler() { return _indexPageHandler; }
diff --git a/backends/networking/sdl_net/localwebserver.h b/backends/networking/sdl_net/localwebserver.h
index f4c59c6b91..ae9445d0ea 100644
--- a/backends/networking/sdl_net/localwebserver.h
+++ b/backends/networking/sdl_net/localwebserver.h
@@ -82,6 +82,7 @@ class LocalWebserver : public Common::Singleton<LocalWebserver> {
void handleClient(uint32 i);
void acceptClient();
void resolveAddress(void *ipAddress);
+ void addPathHandler(Common::String path, ClientHandlerCallback handler);
public:
static const uint32 DEFAULT_SERVER_PORT = 12345;
@@ -92,8 +93,6 @@ public:
void start();
void stop();
void stopOnIdle();
- void addPathHandler(Common::String path, ClientHandlerCallback handler);
- void removePathHandler(Common::String path);
Common::String getAddress();
IndexPageHandler &indexPageHandler();