From 0acbe51f75bd1791b30d43e337c15e50680ae8c5 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 5 Jun 2016 17:48:41 +0200 Subject: These checks are no longer necessary --- common/messagequeue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/messagequeue.cpp') diff --git a/common/messagequeue.cpp b/common/messagequeue.cpp index fd86635..b9f11f8 100644 --- a/common/messagequeue.cpp +++ b/common/messagequeue.cpp @@ -112,7 +112,7 @@ KAsync::Job MessageQueue::dequeueBatch(int maxBatchSize, const std::functi .openDatabase() .scan("", [this, resultHandler, resultCount, &count, maxBatchSize, &waitCondition](const QByteArray &key, const QByteArray &value) -> bool { - if (Sink::Storage::isInternalKey(key) || mPendingRemoval.contains(key)) { + if (mPendingRemoval.contains(key)) { return true; } *resultCount += 1; @@ -158,7 +158,7 @@ bool MessageQueue::isEmpty() if (db) { db.scan("", [&count, this](const QByteArray &key, const QByteArray &value) -> bool { - if (!Sink::Storage::isInternalKey(key) && !mPendingRemoval.contains(key)) { + if (!mPendingRemoval.contains(key)) { count++; return false; } -- cgit v1.2.3