Commit 3903e926 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 2adea422
Pipeline #38466 failed with stage
in 38 minutes and 50 seconds
......@@ -6,7 +6,6 @@
*/
#include "migrationstatuswidget.h"
#include "migrationscheduler.h"
#include <QVBoxLayout>
#include <QTreeView>
#include <QAction>
......
......@@ -14,7 +14,6 @@
#include <ChangeRecorder>
#include <EntityTreeModel>
#include <Collection>
#include <KMime/Message>
#include <KLocalizedString>
......@@ -23,7 +22,6 @@
#include "newmailnotifier_debug.h"
#include <QVBoxLayout>
#include <QIdentityProxyModel>
#include <QHBoxLayout>
#include <QTreeView>
#include <QLabel>
......
......@@ -9,7 +9,6 @@
#include "migration_debug.h"
#include <AkonadiCore/AgentManager>
#include <AkonadiCore/AgentInstance>
#include <AkonadiCore/ServerManager>
#include <AkonadiCore/AgentInstanceCreateJob>
......
......@@ -9,7 +9,6 @@
#include "migration_debug.h"
#include <KLocalizedString>
#include <AkonadiCore/servermanager.h>
#include <QFile>
#include <QDateTime>
#include <QStandardPaths>
#include <QFileInfo>
......
......@@ -17,7 +17,6 @@
#include <KLocalizedString>
#include <KMessageBox>
#include <QList>
#include <QPointer>
#include <QStringList>
#include <QStandardItem>
......
......@@ -55,7 +55,6 @@
#include <KLocalizedString>
#include "davresource_debug.h"
#include <QSet>
using namespace Akonadi;
......
......@@ -21,7 +21,6 @@
#include <QCheckBox>
#include <QFormLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QRadioButton>
#include <QRegularExpressionValidator>
......
......@@ -12,7 +12,6 @@
#include <KDAV/ProtocolInfo>
#include <AkonadiCore/Collection>
#include <AkonadiCore/Item>
#include <KContacts/Addressee>
#include <KContacts/VCardConverter>
#include <KCalendarCore/ICalFormat>
......
......@@ -24,7 +24,6 @@
#include "entriesfetchjob.h"
#include "etesync_debug.h"
#include "etesyncadapter.h"
#include "journalsfetchjob.h"
#include "settings.h"
#include "settingsadaptor.h"
......
......@@ -11,7 +11,6 @@
#include <QCheckBox>
#include <QFormLayout>
#include <QIcon>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
......
......@@ -11,7 +11,6 @@
#include "ewsclient_debug.h"
#include "ewsmailbox.h"
#include "ewstypes.h"
class EwsAttendeePrivate : public QSharedData
{
......
......@@ -6,7 +6,6 @@
#include "ewsclient.h"
#include <QString>
#include "auth/ewsabstractauth.h"
#include "ewsclient_debug.h"
......
......@@ -11,7 +11,6 @@
#include <QXmlStreamReader>
#include "ewsclient_debug.h"
#include "ewstypes.h"
class EwsEffectiveRightsPrivate : public QSharedData
{
......
......@@ -6,7 +6,6 @@
#include "ewsid.h"
#include <QString>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QDebug>
......
......@@ -11,7 +11,6 @@
#include "ewsclient_debug.h"
#include "ewsid.h"
#include "ewstypes.h"
class EwsOccurrencePrivate : public QSharedData
{
......
......@@ -8,9 +8,7 @@
#include <QTemporaryFile>
#include "ewsclient.h"
#include "ewsclient_debug.h"
#include "ewsserverversion.h"
#include "auth/ewsabstractauth.h"
EwsRequest::EwsRequest(EwsClient &client, QObject *parent)
......
......@@ -8,7 +8,6 @@
#include <QDateTime>
#include "ewsclient_debug.h"
#include "ewsfolder.h"
#include "ewsid.h"
#include "ewsitem.h"
......
......@@ -6,7 +6,6 @@
#include "ewsfetchitemdetailjob.h"
#include "ewsgetitemrequest.h"
EwsFetchItemDetailJob::EwsFetchItemDetailJob(EwsClient &client, QObject *parent, const Akonadi::Collection &collection)
: KCompositeJob(parent)
......
......@@ -9,10 +9,8 @@
#include <KLocalizedString>
#include <AkonadiAgentBase/AgentBase>
#include <AkonadiCore/ItemFetchJob>
#include <AkonadiCore/ItemFetchScope>
#include "ewsfinditemrequest.h"
#include "ewssyncfolderitemsrequest.h"
#include "ewsclient.h"
#include "ewsmailbox.h"
......
......@@ -21,7 +21,6 @@
#include <KLocalizedString>
#include "ewsfetchitemsjob.h"
#include "ewsfetchfoldersjob.h"
#include "ewsfetchfoldersincrjob.h"
#include "ewsgetitemrequest.h"
......
......@@ -14,7 +14,6 @@
#include <QXmlSerializer>
#include <QRegularExpression>
#include "fakeewsserver.h"
#include "fakeewsserver_debug.h"
static const QHash<uint, QString> responseCodes = {
......
......@@ -8,7 +8,6 @@
#include <QEventLoop>
#include "fakeewsserver.h"
#include "fakeewsserver_debug.h"
FakeEwsServerThread::FakeEwsServerThread(QObject *parent)
......
......@@ -6,9 +6,7 @@
#include "ewsoauth_ut_mock.h"
#include <QUrl>
#include <QUrlQuery>
#include <QtWebEngineWidgetsVersion>
Q_LOGGING_CATEGORY(EWSCLI_LOG, "org.kde.pim.ews.client", QtInfoMsg)
namespace Mock {
......
......@@ -6,7 +6,6 @@
#include "folderarchiveaccountinfo.h"
#include <KConfigGroup>
FolderArchiveAccountInfo::FolderArchiveAccountInfo()
{
......
......@@ -5,7 +5,6 @@
*/
#include "folderarchivesettingpage.h"
#include "folderarchiveaccountinfo.h"
#include "folderarchiveutil.h"
#include <CollectionRequester>
......@@ -19,7 +18,6 @@
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QComboBox>
#include <QDBusReply>
#include <QDBusInterface>
#include <QDBusConnectionInterface>
......
......@@ -5,7 +5,6 @@
*/
#include "generichandler.h"
#include "googleresourcestateinterface.h"
#include "googleresource_debug.h"
#include <AkonadiAgentBase/AgentBase>
......
......@@ -13,7 +13,6 @@
#include "googleresource_debug.h"
#include "settingsadaptor.h"
#include "calendarhandler.h"
#include "contacthandler.h"
#include "taskhandler.h"
......
......@@ -6,7 +6,6 @@
*/
#include "googlesettings.h"
#include "settingsbase.h"
#include "googleresource_debug.h"
#include <KGAPI/Account>
......
......@@ -10,8 +10,6 @@
#include <QDBusConnection>
#include <KCalendarCore/FileStorage>
#include <KCalendarCore/MemoryCalendar>
#include <KCalendarCore/Incidence>
#include <KCalendarCore/ICalFormat>
......
......@@ -45,7 +45,6 @@
#include "settings.h"
#include "imapaccount.h"
#include "imapidlemanager.h"
#include "resourcestate.h"
#include "subscriptiondialog.h"
#include "addcollectiontask.h"
......
......@@ -8,7 +8,6 @@
#include <QByteArray>
#include <attribute.h>
NoInferiorsAttribute::NoInferiorsAttribute(bool noInferiors)
: mNoInferiors(noInferiors)
......
......@@ -8,7 +8,6 @@
#include <QByteArray>
#include <attribute.h>
NoSelectAttribute::NoSelectAttribute(bool noSelect)
: mNoSelect(noSelect)
......
......@@ -10,9 +10,7 @@
#include <KIMAP/SearchJob>
#include <KIMAP/SelectJob>
#include <KIMAP/StoreJob>
#include <KIMAP/ImapSet>
#include "imapresource_debug.h"
#include <KMime/Message>
#include "imapflags.h"
......
......@@ -17,7 +17,6 @@
#include <imapaclattribute.h>
#include "imapflags.h"
#include "sessionpool.h"
#include "resourcestateinterface.h"
ResourceTask::ResourceTask(ActionIfNoSession action, ResourceStateInterface::Ptr resource, QObject *parent)
: QObject(parent)
......
......@@ -29,7 +29,6 @@
#include <KLocalizedString>
#include <kimap/expungejob.h>
#include <kimap/fetchjob.h>
#include <kimap/selectjob.h>
#include <kimap/session.h>
#include <kimap/searchjob.h>
......
......@@ -9,7 +9,6 @@
#include <KMessageBox>
#include <KLocalizedString>
#include <QDialog>
#include <mailtransport/transportbase.h>
#include <kwindowsystem.h>
......
......@@ -8,7 +8,6 @@
#include <QByteArray>
#include <attribute.h>
UidNextAttribute::UidNextAttribute(int uidnext)
: mUidNext(uidnext)
......
......@@ -8,7 +8,6 @@
#include <QByteArray>
#include <attribute.h>
UidValidityAttribute::UidValidityAttribute(int uidvalidity)
: mUidValidity(uidvalidity)
......
......@@ -7,7 +7,6 @@
#include "kolabchangeitemstagstask.h"
#include "kolabresource_debug.h"
#include "tagchangehelper.h"
#include <AkonadiCore/ItemFetchJob>
#include <AkonadiCore/ItemFetchScope>
......
......@@ -7,7 +7,6 @@
#include "kolabchangetagtask.h"
#include "kolabresource_debug.h"
#include "tagchangehelper.h"
#include <AkonadiCore/ItemFetchJob>
#include <AkonadiCore/ItemFetchScope>
......
......@@ -13,7 +13,6 @@
#include "sessionuiproxy.h"
#include "settingspasswordrequester.h"
#include <resourcestateinterface.h>
#include <resourcestate.h>
#include <retrieveitemstask.h>
#include <collectionannotationsattribute.h>
#include <changecollectiontask.h>
......
......@@ -7,9 +7,7 @@
#include "calendaring.h"
#include "pimkolab_debug.h"
#include <kcalendarcore/event.h>
#include <kcalendarcore/todo.h>
#include <kolabevent.h>
#include <QDate>
#include <QTimeZone>
......
......@@ -5,7 +5,6 @@
*/
#include "event.h"
#include <icalendar/icalendar.h>
#include <kolabformat/kolabobject.h>
#include <conversion/kcalconversion.h>
#include <conversion/commonconversion.h>
......
......@@ -9,7 +9,6 @@
#include "timezoneconverter.h"
#include <iostream>
#include <QUrl>
#include <QTimeZone>
namespace Kolab {
......
......@@ -6,7 +6,6 @@
#include "errorhandler.h"
#include <QDebug>
#include <QTime>
#include <QMutex>
#include <iostream>
......
......@@ -6,7 +6,6 @@
#include "kolabobject.h"
#include "v2helpers.h"
#include "kolabdefinitions.h"
#include "libkolab-version.h"
#include "pimkolab_debug.h"
......
......@@ -6,23 +6,11 @@
#include "v2helpers.h"
#include "kolabdefinitions.h"
#include "kolabformatV2/kolabbase.h"
#include "kolabformatV2/journal.h"
#include "kolabformatV2/task.h"
#include "kolabformatV2/event.h"
#include "kolabformatV2/contact.h"
#include "kolabformatV2/distributionlist.h"
#include "kolabformatV2/note.h"
#include "mime/mimeutils.h"
#include "pimkolab_debug.h"
#include <kcontacts/contactgroup.h>
#include <qdom.h>
#include <QBuffer>
#include <akonadi/notes/noteutils.h>
namespace Kolab {
void getAttachments(KCalendarCore::Incidence::Ptr incidence, const QStringList &attachments, const KMime::Message::Ptr &mimeData)
......
......@@ -10,7 +10,6 @@
#include "event.h"
#include "pimkolab_debug.h"
#include <kcalendarcore/event.h>
using namespace KolabV2;
......
......@@ -12,7 +12,6 @@
#include <kcontacts/addressee.h>
#include <kcontacts/contactgroup.h>
#include <KCalendarCore/Incidence>
#include <kcalendarcore/journal.h>
using namespace KolabV2;
......
......@@ -11,7 +11,6 @@
#include "libkolab-version.h"
#include "pimkolab_debug.h"
#include <kcalendarcore/journal.h>
using namespace KolabV2;
......
......@@ -10,7 +10,6 @@
#include "task.h"
#include "pimkolab_debug.h"
#include <kcalendarcore/todo.h>
using namespace KolabV2;
......
......@@ -10,10 +10,8 @@
#include <KIMAP/SearchJob>
#include <KIMAP/SelectJob>
#include <KIMAP/StoreJob>
#include <KIMAP/FetchJob>
#include <KIMAP/ImapSet>
#include "kolabresource_debug.h"
#include <KMime/Message>
#include <replacemessagejob.h>
#include "imapflags.h"
......
......@@ -8,7 +8,6 @@
#include "oxutils.h"
#include <QDateTime>
#include <QStringList>
using namespace OXA;
......
......@@ -10,7 +10,6 @@
// Qt
#include <QDebug>
#include <QTcpServer>
FakeServerThread::FakeServerThread(QObject *parent)
: QThread(parent)
......
......@@ -5,7 +5,6 @@
*/
#include "pop3resource.h"
#include "settings.h"
#include "jobs.h"
#include <CollectionFetchJob>
......
......@@ -7,7 +7,6 @@
#include "collectionannotationsattribute.h"
#include <QByteArray>
#include <attribute.h>
using namespace Akonadi;
......
......@@ -7,7 +7,6 @@
#include "collectionflagsattribute.h"
#include <QByteArray>
#include <attribute.h>
using namespace Akonadi;
......
......@@ -9,7 +9,6 @@
#include "singlefileresourceconfigwidgetbase.h"
#include <KIO/Job>
#include <QUrl>
#include <QTimer>
#include <KLocalizedString>
......
......@@ -4,7 +4,6 @@
#include <QCryptographicHash>
#include <QNetworkRequest>
#include <QNetworkAccessManager>
#include <QDateTime>
#include <QByteArray>
#include "debug.h"
......
......@@ -2,8 +2,6 @@
SPDX-License-Identifier: BSD-2-Clause
*/
#include <QTimer>
#include <QNetworkReply>
#include "o2/o1timedreply.h"
......
......@@ -6,8 +6,6 @@
#include <QPair>
#include <QMap>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QNetworkAccessManager>
#include <QDateTime>
#include <QCryptographicHash>
#include <QVariantMap>
......
......@@ -2,8 +2,6 @@
SPDX-License-Identifier: BSD-2-Clause
*/
#include <QTimer>
#include <QNetworkReply>
#include "o2/o2reply.h"
......