diff options
Diffstat (limited to 'common/storage_common.cpp')
-rw-r--r-- | common/storage_common.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/common/storage_common.cpp b/common/storage_common.cpp index 8006a8e..4de585d 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp | |||
@@ -54,19 +54,6 @@ std::function<void(const Storage::Error &error)> Storage::defaultErrorHandler() | |||
54 | return basicErrorHandler(); | 54 | return basicErrorHandler(); |
55 | } | 55 | } |
56 | 56 | ||
57 | int Storage::scan(const QByteArray &key, const std::function<bool(const QByteArray &value)> &resultHandler, const std::function<void(const Storage::Error &error)> &errorHandler) | ||
58 | { | ||
59 | return scan(key, [&resultHandler](void *keyPtr, int keySize, void *valuePtr, int valueSize) { | ||
60 | return resultHandler(QByteArray::fromRawData((char*)(valuePtr), valueSize)); | ||
61 | }, | ||
62 | errorHandler); | ||
63 | } | ||
64 | |||
65 | bool Storage::write(const QByteArray &sKey, const QByteArray &sValue, const std::function<void(const Storage::Error &error)> &errorHandler) | ||
66 | { | ||
67 | return write(const_cast<char*>(sKey.data()), sKey.size(), const_cast<char*>(sValue.data()), sValue.size(), errorHandler); | ||
68 | } | ||
69 | |||
70 | void Storage::setMaxRevision(qint64 revision) | 57 | void Storage::setMaxRevision(qint64 revision) |
71 | { | 58 | { |
72 | auto transaction = createTransaction(Akonadi2::Storage::ReadWrite); | 59 | auto transaction = createTransaction(Akonadi2::Storage::ReadWrite); |