summaryrefslogtreecommitdiffstats
path: root/src/Client/Requests/DaemonCommandRequest.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-03-12 20:26:36 +0100
committerMatthias Schiffer <matthias@gamezock.de>2009-03-12 20:26:36 +0100
commit03e7a5b2fefa08d49ef34e70bfb1d52f0a7d828e (patch)
tree863952edd85e56578e0810adbdccea3a1bf47e61 /src/Client/Requests/DaemonCommandRequest.cpp
parentde5fa3867791bf4bf84a52de8cd09821f9ce28ab (diff)
downloadmad-03e7a5b2fefa08d49ef34e70bfb1d52f0a7d828e.tar
mad-03e7a5b2fefa08d49ef34e70bfb1d52f0a7d828e.zip
Request-Klassen vereinfacht
Diffstat (limited to 'src/Client/Requests/DaemonCommandRequest.cpp')
-rw-r--r--src/Client/Requests/DaemonCommandRequest.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/Client/Requests/DaemonCommandRequest.cpp b/src/Client/Requests/DaemonCommandRequest.cpp
index 6e82c60..7b444cd 100644
--- a/src/Client/Requests/DaemonCommandRequest.cpp
+++ b/src/Client/Requests/DaemonCommandRequest.cpp
@@ -34,19 +34,6 @@ void DaemonCommandRequest::sendRequest(Net::Connection *connection, uint16_t req
connection->send(packet.encode(requestId));
}
-void DaemonCommandRequest::handlePacket(Net::Connection*, uint16_t, const Common::XmlPacket &packet) {
- if(packet.getType() == "Error") {
- finishWithError(Common::Exception(packet["Where"], packet["ErrorCode"], packet["SubCode"], packet["SubSubCode"]));
- return;
- }
- else if(packet.getType() != "OK") {
- finishWithError(Common::Exception(Common::Exception::UNEXPECTED_PACKET));
- return; // TODO Logging
- }
-
- finish(packet);
-}
-
}
}
}