From b4ba2aed63e979670ef9931546a7118daadd48b5 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 21 Oct 2016 14:50:54 +0200 Subject: Cleanup --- common/datastorequery.cpp | 18 ------------------ common/datastorequery.h | 3 --- common/domain/mail.cpp | 2 -- common/queryrunner.cpp | 5 ----- common/queryrunner.h | 2 -- examples/imapresource/imapresource.cpp | 16 ++++------------ examples/maildirresource/maildirresource.cpp | 16 +++++----------- 7 files changed, 9 insertions(+), 53 deletions(-) diff --git a/common/datastorequery.cpp b/common/datastorequery.cpp index 9f20ba9..ff255f4 100644 --- a/common/datastorequery.cpp +++ b/common/datastorequery.cpp @@ -21,10 +21,6 @@ #include "log.h" #include "applicationdomaintype.h" -#include "folder.h" -#include "mail.h" -#include "event.h" - using namespace Sink; using namespace Sink::Storage; @@ -394,20 +390,6 @@ QVector DataStoreQuery::indexLookup(const QByteArray &property, cons /* } */ /* } */ -/* template */ -/* QSharedPointer prepareQuery(const QByteArray &type, Args && ... args) */ -/* { */ -/* if (type == ApplicationDomain::getTypeName()) { */ -/* return ApplicationDomain::TypeImplementation::prepareQuery(std::forward(args)...); */ -/* } else if (type == ApplicationDomain::getTypeName()) { */ -/* return ApplicationDomain::TypeImplementation::prepareQuery(std::forward(args)...); */ -/* } else if (type == ApplicationDomain::getTypeName()) { */ -/* return ApplicationDomain::TypeImplementation::prepareQuery(std::forward(args)...); */ -/* } */ -/* Q_ASSERT(false); */ -/* return QSharedPointer(); */ -/* } */ - QByteArrayList DataStoreQuery::executeSubquery(const Query &subquery) { Q_ASSERT(!subquery.type.isEmpty()); diff --git a/common/datastorequery.h b/common/datastorequery.h index 25fee66..5f4149e 100644 --- a/common/datastorequery.h +++ b/common/datastorequery.h @@ -19,10 +19,7 @@ #pragma once #include "query.h" -#include "storage.h" #include "resultset.h" -#include "query.h" -#include "entitybuffer.h" #include "log.h" #include "storage/entitystore.h" diff --git a/common/domain/mail.cpp b/common/domain/mail.cpp index c1b0b34..ee58928 100644 --- a/common/domain/mail.cpp +++ b/common/domain/mail.cpp @@ -66,8 +66,6 @@ void TypeImplementation::configure(IndexPropertyMapper &indexPropertyMappe void TypeImplementation::configure(ReadPropertyMapper &propertyMapper) { - - propertyMapper.addMapping(&Buffer::uid); propertyMapper.addMapping(&Buffer::sender); propertyMapper.addMapping(&Buffer::senderName); diff --git a/common/queryrunner.cpp b/common/queryrunner.cpp index bc4b5fc..1eacb8e 100644 --- a/common/queryrunner.cpp +++ b/common/queryrunner.cpp @@ -23,12 +23,7 @@ #include #include "commands.h" -#include "log.h" -#include "storage.h" -#include "definitions.h" -#include "domainadaptor.h" #include "asyncutils.h" -#include "storage.h" #include "datastorequery.h" SINK_DEBUG_AREA("queryrunner") diff --git a/common/queryrunner.h b/common/queryrunner.h index 9bd4791..7e3d688 100644 --- a/common/queryrunner.h +++ b/common/queryrunner.h @@ -21,9 +21,7 @@ #include #include "resourcecontext.h" -#include "resourceaccess.h" #include "resultprovider.h" -#include "domaintypeadaptorfactoryinterface.h" #include "query.h" #include "log.h" diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index 421bedf..34a4376 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp @@ -18,21 +18,14 @@ */ #include "imapresource.h" + #include "facade.h" -#include "entitybuffer.h" #include "pipeline.h" -#include "mail_generated.h" -#include "createentity_generated.h" -#include "modifyentity_generated.h" -#include "deleteentity_generated.h" -#include "domainadaptor.h" #include "resourceconfig.h" #include "commands.h" #include "index.h" #include "log.h" -#include "domain/mail.h" #include "definitions.h" -#include "facadefactory.h" #include "inspection.h" #include "synchronizer.h" #include "sourcewriteback.h" @@ -41,15 +34,14 @@ #include #include -#include -#include -#include #include #include +#include "facadefactory.h" +#include "adaptorfactoryregistry.h" + #include "imapserverproxy.h" #include "mailpreprocessor.h" -#include "adaptorfactoryregistry.h" #include "specialpurposepreprocessor.h" //This is the resources entity type, and not the domain type diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp index 29b35fd..23920d4 100644 --- a/examples/maildirresource/maildirresource.cpp +++ b/examples/maildirresource/maildirresource.cpp @@ -18,30 +18,24 @@ */ #include "maildirresource.h" + #include "facade.h" -#include "entitybuffer.h" #include "pipeline.h" -#include "mail_generated.h" -#include "createentity_generated.h" -#include "modifyentity_generated.h" -#include "deleteentity_generated.h" -#include "domainadaptor.h" #include "resourceconfig.h" -#include "commands.h" #include "index.h" #include "log.h" -#include "domain/mail.h" #include "definitions.h" -#include "facadefactory.h" #include "libmaildir/maildir.h" #include "inspection.h" #include "synchronizer.h" #include "sourcewriteback.h" + +#include "facadefactory.h" #include "adaptorfactoryregistry.h" + #include "mailpreprocessor.h" #include "specialpurposepreprocessor.h" -#include -#include + #include #include #include -- cgit v1.2.3