From 91bef9cfa52fcba6eed618436510fb63a8facfc6 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 31 Dec 2015 15:08:45 +0100 Subject: Cleanup --- common/domainadaptor.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/common/domainadaptor.h b/common/domainadaptor.h index b541e23..39bd3b8 100644 --- a/common/domainadaptor.h +++ b/common/domainadaptor.h @@ -82,8 +82,6 @@ static void createBufferPartBuffer(const Akonadi2::ApplicationDomain::Applicatio /** * A generic adaptor implementation that uses a property mapper to read/write values. - * - * TODO: this is the read-only part. Create a write only equivalent */ template class GenericBufferAdaptor : public Akonadi2::ApplicationDomain::BufferAdaptor @@ -95,11 +93,6 @@ public: } - //TODO remove - void setProperty(const QByteArray &key, const QVariant &value) - { - } - virtual QVariant getProperty(const QByteArray &key) const { if (mResourceBuffer && mResourceMapper->hasMapping(key)) { @@ -107,16 +100,13 @@ public: } else if (mLocalBuffer && mLocalMapper->hasMapping(key)) { return mLocalMapper->getProperty(key, mLocalBuffer); } - qWarning() << "no mapping available for key " << key; + Warning() << "No mapping available for key " << key; return QVariant(); } virtual QList availableProperties() const { - QList props; - props << mResourceMapper->availableProperties(); - props << mLocalMapper->availableProperties(); - return props; + return mResourceMapper->availableProperties() + mLocalMapper->availableProperties(); } LocalBuffer const *mLocalBuffer; -- cgit v1.2.3