From 922e0979e2c27ff8dbc765ae151d17c7815b98a0 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 26 Jun 2018 11:44:11 +0200 Subject: [Storage] Implement Key API --- common/typeindex.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'common/typeindex.cpp') diff --git a/common/typeindex.cpp b/common/typeindex.cpp index b18791f..0b78d59 100644 --- a/common/typeindex.cpp +++ b/common/typeindex.cpp @@ -25,8 +25,6 @@ #include #include -#include - using namespace Sink; static QByteArray getByteArray(const QVariant &value) @@ -53,13 +51,6 @@ static QByteArray getByteArray(const QVariant &value) return "toplevel"; } -template -static QByteArray padNumber(T number) -{ - static T uint_num_digits = (T)std::log10(std::numeric_limits::max()) + 1; - return QByteArray::number(number).rightJustified(uint_num_digits, '0'); -} - static QByteArray toSortableByteArrayImpl(const QDateTime &date) { // Sort invalid last -- cgit v1.2.3