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); - } -} - - - - - /******************************************************************************/ @@ -794,7 +775,7 @@ QDebug operator<<(QDebug _dbg, const ChangeNotification::Item &item) { QDebug dbg(_dbg.noquote()); - return dbg << "Item" << item.id << "(RID:" << item.remoteId + return dbg << "Item:" << item.id << "(RID:" << item.remoteId << ", RREV:" << item.remoteRevision << ", mimetype: " << item.mimeType; } 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); };