diff --git a/src/private/protocol.cpp b/src/private/protocol.cpp --- a/src/private/protocol.cpp +++ b/src/private/protocol.cpp @@ -382,25 +382,6 @@ 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 --- a/src/private/protocol_p.h +++ b/src/private/protocol_p.h @@ -260,7 +260,6 @@ static ResponsePtr response(Command::Type type); private: - static CommandPtr deserializeImpl(QIODevice *device); template friend CommandPtr deserialize(QIODevice *device); };