Commit 613a6993 authored by Martin Koller's avatar Martin Koller

remove unused method

Differential Revision: https://phabricator.kde.org/D5680
parent 6f2097da
......@@ -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);
}
}
/******************************************************************************/
......
......@@ -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);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment