diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/HTTPClientReceiver.cpp | 4 | ||||
-rw-r--r-- | src/common/interface/ClientInterface.hpp | 9 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/client/HTTPClientReceiver.cpp b/src/client/HTTPClientReceiver.cpp index bafcae9f..cad55107 100644 --- a/src/client/HTTPClientReceiver.cpp +++ b/src/client/HTTPClientReceiver.cpp @@ -138,8 +138,6 @@ HTTPClientReceiver::message_callback(SoupSession* session, SoupMessage* msg, voi const string path = soup_message_get_uri(msg)->path; if (path == Path::root_uri) { me->_target->response_ok(0); - me->_target->enable(); - } else if (path == "/plugins") { if (msg->response_body->data == NULL) { @@ -147,7 +145,6 @@ HTTPClientReceiver::message_callback(SoupSession* session, SoupMessage* msg, voi } else { Glib::Mutex::Lock lock(me->_mutex); me->_target->response_ok(0); - me->_target->enable(); me->_parser->parse_string(me->_world, me->_target.get(), Glib::ustring(msg->response_body->data), Glib::ustring(".")); @@ -159,7 +156,6 @@ HTTPClientReceiver::message_callback(SoupSession* session, SoupMessage* msg, voi } else { Glib::Mutex::Lock lock(me->_mutex); me->_target->response_ok(0); - me->_target->enable(); me->_parser->parse_string(me->_world, me->_target.get(), Glib::ustring(msg->response_body->data), Glib::ustring("/patch/")); diff --git a/src/common/interface/ClientInterface.hpp b/src/common/interface/ClientInterface.hpp index 104427e6..a154e2ca 100644 --- a/src/common/interface/ClientInterface.hpp +++ b/src/common/interface/ClientInterface.hpp @@ -44,15 +44,6 @@ public: virtual void response_ok(int32_t id) = 0; virtual void response_error(int32_t id, const std::string& msg) = 0; - virtual bool enabled() const = 0; - - virtual void enable() = 0; - - /** Signifies the client does not wish to receive any messages until - * enable is called. Useful for performance and avoiding feedback. - */ - virtual void disable() = 0; - /** Transfers are 'weak' bundles. These are used to break a large group * of similar/related messages into larger chunks (solely for communication * efficiency). A bunch of messages in a transfer will arrive as 1 or more |