From 016fea734d09df707be9a16a4ad6a1107f41549f Mon Sep 17 00:00:00 2001 From: Minijackson Date: Wed, 27 Jun 2018 11:12:38 +0200 Subject: Fix pipelinetest + remove useless commented lines --- common/storage_common.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'common/storage_common.cpp') diff --git a/common/storage_common.cpp b/common/storage_common.cpp index c922d9d..f96097a 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp @@ -24,8 +24,6 @@ #include "log.h" #include "utils.h" -#include - QDebug& operator<<(QDebug &dbg, const Sink::Storage::DataStore::Error &error) { dbg << error.message << "Code: " << error.code << "Db: " << error.store; @@ -38,8 +36,6 @@ namespace Storage { static const char *s_internalPrefix = "__internal"; static const int s_internalPrefixSize = strlen(s_internalPrefix); static const int s_lengthOfUid = 38; -// RFC 4122 Section 4.1.2 says 128 bits -> 16 bytes -//static const int s_lengthOfUid = 16; DbLayout::DbLayout() { @@ -198,26 +194,6 @@ bool DataStore::isInternalKey(const QByteArray &key) return key.startsWith(s_internalPrefix); } -/* -QByteArray DataStore::assembleKey(const QByteArray &key, qint64 revision) -{ - Q_ASSERT(revision <= 9223372036854775807); - Q_ASSERT(key.size() == s_lengthOfUid); - return key + QByteArray::number(revision).rightJustified(19, '0', false); -} - -//QByteArray DataStore::uidFromKey(const QByteArray &key) -Identifier DataStore::uidFromKey(const QByteArray &key) -{ - return Identifier::fromByteArray(key.mid(0, s_lengthOfUid)); -} - -qint64 DataStore::revisionFromKey(const QByteArray &key) -{ - return key.mid(s_lengthOfUid + 1).toLongLong(); -} -*/ - QByteArray DataStore::generateUid() { return createUuid(); -- cgit v1.2.3