aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Koller <[email protected]>2017-05-03 19:59:16 +0200
committerMartin Koller <[email protected]>2017-05-03 19:59:16 +0200
commit613a699374f1b3a41040b09284a43f0c7a304826 (patch)
treebaa218cd7365377906e678cfc88a6e9a7fa47088
parent6f2097daf0898234ac329714c33912456a5836c7 (diff)
remove unused method
Differential Revision: https://phabricator.kde.org/D5680
-rw-r--r--src/private/protocol.cpp19
-rw-r--r--src/private/protocol_p.h1
2 files changed, 0 insertions, 20 deletions
diff --git a/src/private/protocol.cpp b/src/private/protocol.cpp
index 0ceda80..03dbdbe 100644
--- a/src/private/protocol.cpp
+++ b/src/private/protocol.cpp
@@ -382,25 +382,6 @@ ResponsePtr Factory::response(Command::Type type)
return iter->second();
}
-CommandPtr Factory::deserializeImpl(QIODevice *device)
-{
- device->waitForReadyRead(sizeof(Command::Type));
- Command::Type cmdType;
- if (device->peek((char *) &cmdType, sizeof(Command::Type)) != sizeof(Command::Type)) {
- throw ProtocolException("Failed to peek command type");
- }
-
- if (cmdType & Command::_ResponseBit) {
- return Factory::response(Command::Type(cmdType & ~Command::_ResponseBit));
- } else {
- return Factory::command(cmdType);
- }
-}
-
-
-
-
-
/******************************************************************************/
diff --git a/src/private/protocol_p.h b/src/private/protocol_p.h
index 5a9955e..401ac4f 100644
--- a/src/private/protocol_p.h
+++ b/src/private/protocol_p.h
@@ -260,7 +260,6 @@ public:
static ResponsePtr response(Command::Type type);
private:
- static CommandPtr deserializeImpl(QIODevice *device);
template<typename T>
friend CommandPtr deserialize(QIODevice *device);
};