Commit 44ca2fc9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

If include is define in .h remove it if it's defined in .cpp too (scripted)

parent 83e77b84
Pipeline #38473 failed with stage
in 27 minutes and 12 seconds
......@@ -17,8 +17,6 @@
#include "itemfetchscope.h"
#include "itemmodifyjob.h"
#include "qtest_akonadi.h"
#include "itemserializer_p.h"
#include "itemserializerplugin.h"
using namespace Akonadi;
......
......@@ -6,7 +6,6 @@
#include "inspectablechangerecorder.h"
#include "changerecorder_p.h"
InspectableChangeRecorderPrivate::InspectableChangeRecorderPrivate(FakeMonitorDependenciesFactory *dependenciesFactory, InspectableChangeRecorder *parent)
: ChangeRecorderPrivate(dependenciesFactory, parent)
......
......@@ -7,17 +7,13 @@
#include "knutresource.h"
#include "knutresource_debug.h"
#include "settings.h"
#include "settingsadaptor.h"
#include "xmlwriter.h"
#include "xmlreader.h"
#include <searchquery.h>
#include <agentfactory.h>
#include <changerecorder.h>
#include <collection.h>
#include <QDBusConnection>
#include <item.h>
#include <itemfetchscope.h>
#include <tagcreatejob.h>
......
......@@ -7,7 +7,6 @@
#include "testsearchplugin.h"
#include <QDebug>
#include <QStringList>
#include "searchquery.h"
QSet<qint64> TestSearchPlugin::search(const QString &query, const QVector<qint64> &collections, const QStringList &mimeTypes)
......
......@@ -28,7 +28,6 @@
#include <QStandardPaths>
#include <ctime>
#include <private/protocol_p.h>
#include <private/scope_p.h>
#include <private/standarddirs_p.h>
#include <shared/akapplication.h>
......
......@@ -6,7 +6,6 @@
*/
#include "fakeclient.h"
#include "fakeakonadiserver.h"
#include <private/protocol_exception_p.h>
#include <private/protocol_p.h>
......
......@@ -27,15 +27,12 @@
#include "akonadiagentbase_debug.h"
#include <KLocalizedString>
#include <KSharedConfig>
#include <Kdelibs4ConfigMigrator>
#include <KAboutData>
#include <QSettings>
#include <QTimer>
#include <QDBusConnection>
#include <QApplication>
#include <QCommandLineParser>
#include <QNetworkConfiguration>
#include <QNetworkConfigurationManager>
......
......@@ -5,7 +5,6 @@
*/
#include "preprocessorbase_p.h"
#include "preprocessorbase.h"
#include <QDBusConnection>
#include "preprocessoradaptor.h"
......
......@@ -13,7 +13,6 @@
#include "collectiondeletejob.h"
#include "collectionsync_p.h"
#include <QDBusConnection>
#include "itemsync.h"
#include "akonadifull-version.h"
#include "tagsync.h"
#include "relationsync.h"
......
......@@ -6,7 +6,6 @@
#include "agentthreadinstance.h"
#include "agentserverinterface.h"
#include "agenttype.h"
#include "akonadicontrol_debug.h"
#include <private/dbus_p.h>
......
......@@ -7,7 +7,6 @@
#include "processcontrol.h"
#include "akonadicontrol_debug.h"
#include <chrono>
#include <shared/akapplication.h>
#include <private/instance_p.h>
......
......@@ -16,7 +16,6 @@
#include <QProcess>
#include <QTimer>
#include <QDBusConnection>
#include <QDBusServiceWatcher>
#include <iostream>
......
......@@ -12,7 +12,6 @@
#include <QFile>
#include <QSocketNotifier>
#include <QSettings>
#include <QLocalSocket>
#include <iostream>
#include <fcntl.h>
......
......@@ -10,7 +10,6 @@
#include <KAboutData>
#include <QDialogButtonBox>
#include <QSize>
namespace Akonadi {
......
......@@ -8,7 +8,6 @@
#include "private/imapparser_p.h"
#include <QIcon>
using namespace Akonadi;
......
......@@ -14,7 +14,6 @@
#include "entitydisplayattribute.h"
#include <QDebug>
#include <QHash>
#include <QString>
#include <QStringList>
......
......@@ -6,7 +6,6 @@
*/
#include "itemserializerplugin.h"
#include "item.h"
#include "itemserializer_p.h"
#include <QBuffer>
......
......@@ -10,7 +10,6 @@
#include "job_p.h"
#include "collection.h"
#include "item.h"
#include "item_p.h"
#include "itemcreatejob.h"
#include "itemdeletejob.h"
......
......@@ -7,7 +7,6 @@
#include "itemdeletejob.h"
#include "collection.h"
#include "item.h"
#include "job_p.h"
#include "protocolhelper_p.h"
#include "private/protocol_p.h"
......
......@@ -7,7 +7,6 @@
#include "itemmovejob.h"
#include "collection.h"
#include "item.h"
#include "job_p.h"
#include "protocolhelper_p.h"
#include "private/protocol_p.h"
......
......@@ -6,7 +6,6 @@
#include "relationfetchjob.h"
#include "job_p.h"
#include "relation.h"
#include "protocolhelper_p.h"
#include "private/protocol_p.h"
#include <QTimer>
......
......@@ -8,7 +8,6 @@
#include "searchcreatejob.h"
#include "collection.h"
#include "protocolhelper_p.h"
#include "job_p.h"
#include "searchquery.h"
......
......@@ -7,7 +7,6 @@
#include "specialcollectionsrequestjob.h"
#include "specialcollectionattribute.h"
#include "specialcollections.h"
#include "specialcollections_p.h"
#include "specialcollectionshelperjobs_p.h"
......@@ -18,7 +17,6 @@
#include "akonadicore_debug.h"
#include <QVariant>
using namespace Akonadi;
......
......@@ -6,7 +6,6 @@
#include "tagfetchjob.h"
#include "job_p.h"
#include "tag.h"
#include "protocolhelper_p.h"
#include "tagfetchscope.h"
#include "attributefactory.h"
......
......@@ -6,9 +6,7 @@
#include "trashjob.h"
#include "collection.h"
#include "entitydeletedattribute.h"
#include "item.h"
#include "job_p.h"
#include "trashsettings.h"
......
......@@ -6,9 +6,7 @@
#include "trashrestorejob.h"
#include "collection.h"
#include "entitydeletedattribute.h"
#include "item.h"
#include "job_p.h"
#include "trashsettings.h"
......
......@@ -7,7 +7,6 @@
#include "entitymimetypefiltermodel.h"
#include "akonadicore_debug.h"
#include "entitytreemodel.h"
#include "mimetypechecker.h"
#include <QString>
......
......@@ -13,7 +13,6 @@
#include <KConfigGroup>
#include <QUrl>
#include "collection.h"
#include "item.h"
#include "entitytreemodel.h"
......
......@@ -6,7 +6,6 @@
*/
#include "entityrightsfiltermodel.h"
#include "entitytreemodel.h"
using namespace Akonadi;
......
......@@ -25,7 +25,6 @@
#include "transactionsequence.h"
#include "itemmodifyjob.h"
#include "session.h"
#include "collectionfetchscope.h"
#include "collectionutils.h"
......
......@@ -5,7 +5,6 @@
*/
#include "entitytreemodel_p.h"
#include "entitytreemodel.h"
#include "agentmanagerinterface.h"
#include "monitor_p.h" // For friend ref/deref
......@@ -19,7 +18,6 @@
#include "monitor.h"
#include "changerecorder.h"
#include "collectioncopyjob.h"
#include "collectionfetchjob.h"
#include "collectionfetchscope.h"
#include "collectionmovejob.h"
#include "collectionstatistics.h"
......
......@@ -19,7 +19,6 @@
#include <KCoreConfigSkeleton>
#include <QHash>
#include <QObject>
using namespace Akonadi;
......
......@@ -22,7 +22,6 @@
#include <QVector>
#include <QtSql/private/qsqldriver_p.h>
#include <QtSql/private/qsqlcachedresult_p.h>
#if defined Q_OS_WIN
# include <qt_windows.h>
......
......@@ -5,7 +5,6 @@
*/
#include "aggregatedfetchscope.h"
#include <private/protocol_p.h>
#include <shared/akranges.h>
#include <QMutex>
......
......@@ -27,7 +27,6 @@
#include "search/searchtaskmanager.h"
#include "aklocalserver.h"
#include <memory>
#include <private/standarddirs_p.h>
#include <private/protocol_p.h>
#include <private/dbus_p.h>
......
......@@ -8,7 +8,6 @@
#include "storage/datastore.h"
#include "akonadiserver_debug.h"
#include <QThread>
using namespace Akonadi::Server;
......
......@@ -17,7 +17,6 @@
#include "handler.h"
#include "notificationmanager.h"
#include "tracer.h"
#include <cassert>
......@@ -26,8 +25,6 @@
#endif
#include <private/protocol_p.h>
#include <private/datastream_p_p.h>
#include <private/standarddirs_p.h>
using namespace Akonadi;
......
......@@ -5,7 +5,6 @@
***************************************************************************/
#include "filetracer.h"
#include <QFile>
#include <QTime>
using namespace Akonadi::Server;
......
......@@ -6,9 +6,7 @@
#include "handler.h"
#include <private/scope_p.h>
#include <private/protocol_p.h>
#include "connection.h"
#include "handler/collectioncopyhandler.h"
#include "handler/collectioncreatehandler.h"
......
......@@ -8,7 +8,6 @@
#include "akonadi.h"
#include "connection.h"
#include "handler/itemcopyhandler.h"
#include "handlerhelper.h"
#include "cachecleaner.h"
#include "protocol_p.h"
......
......@@ -27,7 +27,6 @@
#include "relationfetchhandler.h"
#include "akonadiserver_debug.h"
#include <private/scope_p.h>
#include <private/dbus_p.h>
#include <QStringList>
......
......@@ -20,7 +20,6 @@
#include <QSettings>
#include <QThreadPool>
#include <QPointer>
#include <QDateTime>
using namespace Akonadi;
......
......@@ -14,7 +14,6 @@
#include <QPointer>
#include <shared/akranges.h>
#include <private/protocol_p.h>
#include <private/datastream_p_p.h>
#include <private/protocol_exception_p.h>
......
......@@ -7,13 +7,11 @@
#include "collectionqueryhelper.h"
#include "connection.h"
#include "entities.h"
#include "storage/querybuilder.h"
#include "storage/selectquerybuilder.h"
#include "handler.h"
#include "queryhelper.h"
#include <private/scope_p.h>
#include <private/imapset_p.h>
using namespace Akonadi;
......
......@@ -5,7 +5,6 @@
*/
#include "collectiontreecache.h"
#include "entities.h"
#include "commandcontext.h"
#include "selectquerybuilder.h"
#include "akonadiserver_debug.h"
......
......@@ -35,11 +35,9 @@
#include <QString>
#include <QStringList>
#include <QThread>
#include <QThreadStorage>
#include <QTimer>
#include <QUuid>
#include <QVariant>
#include <QSqlDatabase>
#include <QSqlDriver>
#include <QSqlQuery>
#include <QFile>
......
......@@ -12,7 +12,6 @@
#include <QSqlError>
#include <QDir>
#include <QProcess>
#include <QThread>
#include <QRegularExpression>
#include <QSqlDriver>
......
......@@ -25,7 +25,6 @@
#include <unistd.h>
#endif
#include <chrono>
#include <optional>
using namespace std::chrono_literals;
......
......@@ -12,7 +12,6 @@
#include "querybuilder.h"
#include "akonadiserver_debug.h"
#include <QStringList>
#include <QSqlField>
#include <QSqlRecord>
#include <QSqlQuery>
......
......@@ -7,7 +7,6 @@
#include "itemqueryhelper.h"
#include "commandcontext.h"
#include "entities.h"
#include "storage/querybuilder.h"
#include "handler.h"
#include "storage/queryhelper.h"
......
......@@ -5,7 +5,6 @@
*/
#include "itemretrievaljob.h"
#include "itemretrievalrequest.h"
#include "resourceinterface.h"
#include "akonadiserver_debug.h"
......
......@@ -5,7 +5,6 @@
*/
#include "itemretrievalmanager.h"
#include "itemretrievalrequest.h"
#include "itemretrievaljob.h"
#include "akonadiserver_debug.h"
......@@ -13,9 +12,7 @@
#include <private/dbus_p.h>
#include <QReadWriteLock>
#include <QScopedPointer>
#include <QWaitCondition>
#include <QDBusConnection>
#include <QDBusConnectionInterface>
......
......@@ -6,7 +6,6 @@
***************************************************************************/
#include "parthelper.h"
#include "entities.h"
#include "selectquerybuilder.h"
#include "dbconfig.h"
#include "parttypehelper.h"
......
......@@ -27,7 +27,6 @@
#include <private/externalpartstorage_p.h>
#include <QStringBuilder>
#include <QDBusConnection>
#include <QSqlQuery>
#include <QSqlError>
#include <QDir>
......
......@@ -11,7 +11,6 @@
#include <private/instance_p.h>
#include <akonadifull-version.h>
#include <QDBusConnection>
#include <QTimer>
#include <QCoreApplication>
......
......@@ -21,7 +21,6 @@
#include <KSharedConfig>
#include <KLocalizedString>
#include <QDialogButtonBox>
#include <memory>
......
......@@ -5,7 +5,6 @@
*/
#include "collectionrequester.h"
#include "collectiondialog.h"
#include "entitydisplayattribute.h"
#include "collectionfetchjob.h"
#include "collectionfetchscope.h"
......
......@@ -8,7 +8,6 @@
#include "xmldocument.h"
#include "xmlwriter.h"
#include "collection.h"
#include "collectionfetchjob.h"
#include "item.h"
#include "itemfetchjob.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment