mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
CLOUD: Remove unused removePathHandler(), make addPathHandler() private
This commit is contained in:
parent
9665719b66
commit
b68bd78b44
@ -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; }
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user