Commit 7a3cfeb2 authored by Laurent Montel's avatar Laurent Montel 😁

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

parent 30b3ef95
Pipeline #38449 passed with stage
in 29 minutes and 1 second
......@@ -8,7 +8,6 @@
#include "widgets/formatcombobox.h"
#include "widgets/unitcombobox.h"
#include <MailCommon/FolderRequester>
#include <Collection>
#include <KLocalizedString>
#include <KUrlRequester>
......
......@@ -14,7 +14,6 @@
#include <MailCommon/MailUtil>
#include <KConfigGroup>
#include <KSharedConfig>
#include "archivemailagent_debug.h"
#include <QDate>
......
......@@ -9,8 +9,6 @@
#include "../followupreminderinfo.h"
#include <QTest>
#include <KSharedConfig>
#include <QRegularExpression>
FollowUpReminderConfigTest::FollowUpReminderConfigTest(QObject *parent)
: QObject(parent)
......
......@@ -16,7 +16,6 @@
#include <KConfigGroup>
#include <KConfig>
#include <KSharedConfig>
#include <KNotification>
#include <KLocalizedString>
#include <QRegularExpression>
......
......@@ -8,7 +8,6 @@
#include "followupreminderinfo.h"
#include "followupreminderagent_debug.h"
#include <AkonadiCore/Item>
#include <AkonadiCore/ItemFetchJob>
#include <AkonadiCore/ItemModifyJob>
#include <KCalendarCore/Todo>
......
......@@ -8,7 +8,6 @@
#include "filterlogdialog.h"
#include <MailCommon/FilterLog>
#include <KPIMTextEdit/PlainTextEditorWidget>
#include <KPIMTextEdit/PlainTextEditor>
#include "mailfilterpurposemenuwidget.h"
#include "mailfilteragent_debug.h"
......
......@@ -29,7 +29,6 @@
#include <Kdelibs4ConfigMigrator>
#include <QPointer>
#include <sendlaterinfo.h>
//#define DEBUG_SENDLATERAGENT 1
......
......@@ -11,7 +11,6 @@
#include <MessageComposer/SendLaterInfo>
#include <MessageComposer/SendLaterDialog>
#include <KConfigGroup>
#include <KLocalizedString>
#include <QMenu>
#include <KMessageBox>
......
......@@ -12,7 +12,6 @@
#include <MessageComposer/SendLaterInfo>
#include <MessageComposer/Util>
#include <KSharedConfig>
#include <KConfigGroup>
#include <KMessageBox>
#include <KLocalizedString>
......
......@@ -5,7 +5,6 @@
*/
#include "settingsdialog.h"
#include "unifiedmailboxmanager.h"
#include "unifiedmailboxeditor.h"
#include "unifiedmailbox.h"
#include "mailkernel.h"
......
......@@ -24,7 +24,6 @@
#include <AkonadiCore/LinkJob>
#include <AkonadiCore/UnlinkJob>
#include <AkonadiCore/ServerManager>
#include <Akonadi/KMime/SpecialMailCollections>
#include <KIdentityManagement/IdentityManager>
#include <KIdentityManagement/Identity>
......
......@@ -7,11 +7,9 @@
#include "unifiedmailboxmanager.h"
#include "unifiedmailbox.h"
#include "unifiedmailboxagent_debug.h"
#include "utils.h"
#include "common.h"
#include "settings.h"
#include <KSharedConfig>
#include <KLocalizedString>
#include <AkonadiCore/SpecialCollectionAttribute>
......
......@@ -8,7 +8,6 @@
#include <QHBoxLayout>
#include <KLocalizedString>
#include <KSharedConfig>
#include <KConfigGroup>
#include <QPushButton>
#include <QRegularExpression>
......
......@@ -22,7 +22,6 @@
#include <KTNEF/KTNEFProperty>
#include <KFileItemActions>
#include <KService>
#include <QAction>
#include <KActionCollection>
#include "ktnef_debug.h"
......
......@@ -11,8 +11,6 @@
#include <math.h>
#include <assert.h>
#include <QImage>
#include <QPainter>
#include <QPainterPath>
#include <QDataStream>
#include <QBuffer>
......
......@@ -7,7 +7,6 @@
#include "collectionviewpage.h"
#include <MailCommon/MailKernel>
#include <AkonadiCore/collection.h>
#include <AkonadiCore/entitydisplayattribute.h>
#include <Akonadi/KMime/MessageFolderAttribute>
......@@ -25,7 +24,6 @@
#include <MessageList/ThemeConfigButton>
#include <MailCommon/CollectionViewWidget>
#include <MailCommon/FolderSettings>
using namespace MailCommon;
......
......@@ -17,7 +17,6 @@
using namespace PimCommon::ConfigureImmutableWidgetUtils;
#include <MailTransport/TransportManagementWidget>
using MailTransport::TransportManagementWidget;
#include "ui_accountspagereceivingtab.h"
#include <MailCommon/MailUtil>
#include <AkonadiCore/agentfilterproxymodel.h>
......
......@@ -15,7 +15,6 @@ using namespace PimCommon::ConfigureImmutableWidgetUtils;
#include <Libkdepim/LineEditCatchReturnKey>
#include "messagelistsettings.h"
#include <MailCommon/TagWidget>
#include "MailCommon/Tag"
#include "kmkernel.h"
#include "util.h"
......
......@@ -19,7 +19,6 @@
#include <MessageComposer/PluginEditorGrammarManager>
#include <PimCommon/GenericPluginManager>
#include <AkonadiCore/ServerManager>
#include <PimCommon/PluginUtil>
#include <PimCommon/CustomToolsPlugin>
#include <KSharedConfig>
#include <KLocalizedString>
......
......@@ -21,7 +21,6 @@ using namespace PimCommon::ConfigureImmutableWidgetUtils;
#include <Libkleo/KeySelectionDialog>
#include <KLocalizedString>
#include <KCMultiDialog>
#include <KMessageBox>
#include "kmail_debug.h"
......
......@@ -9,7 +9,6 @@
#include "composer.h"
#include "editor/kmcomposerwin.h"
#include <KMime/Message>
#include <MessageComposer/MessageHelper>
#include <TemplateParser/TemplateParserJob>
......
......@@ -9,7 +9,6 @@
#include "composer.h"
#include "editor/kmcomposerwin.h"
#include <KMime/Message>
#include <MessageComposer/MessageHelper>
#include <TemplateParser/TemplateParserJob>
......
......@@ -8,7 +8,6 @@
#include "kmail_debug.h"
#include <MessageComposer/PluginEditorConvertText>
#include <MessageComposer/PluginEditorConvertTextManager>
#include <MessageComposer/PluginEditorConvertTextInterface>
#include <QAction>
KMailPluginEditorConvertTextManagerInterface::KMailPluginEditorConvertTextManagerInterface(QObject *parent)
......
......@@ -5,7 +5,6 @@
*/
#include "folderarchiveaccountinfo.h"
#include <KConfigGroup>
FolderArchiveAccountInfo::FolderArchiveAccountInfo()
{
......
......@@ -11,7 +11,6 @@
#include <AkonadiCore/CollectionFetchJob>
#include <AkonadiCore/CollectionCreateJob>
#include <QDate>
FolderArchiveAgentCheckCollection::FolderArchiveAgentCheckCollection(FolderArchiveAccountInfo *info, QObject *parent)
: QObject(parent)
......
......@@ -9,7 +9,6 @@
#include "../util.h"
#include "composer.h"
#include "editor/kmcomposerwin.h"
#include <KMime/Message>
#include <KEmailAddress>
#include <MailCommon/MailUtil>
......
......@@ -10,7 +10,6 @@
#include "../util.h"
#include "composer.h"
#include "editor/kmcomposerwin.h"
#include <KMime/Message>
#include <KEmailAddress>
#include <MailCommon/MailUtil>
......
......@@ -10,7 +10,6 @@
#include "editor/kmcomposerwin.h"
#include <MessageViewer/MessageViewerSettings>
#include <KMime/Message>
#include <MessageComposer/MessageHelper>
#include <TemplateParser/TemplateParserJob>
......
......@@ -9,7 +9,6 @@
#include "composer.h"
#include "editor/kmcomposerwin.h"
#include <KMime/Message>
#include <MessageComposer/MessageHelper>
#include <TemplateParser/TemplateParserJob>
......
......@@ -8,8 +8,6 @@
#include "kmail_debug.h"
#include "kmkernel.h"
#include "composer.h"
#include "editor/kmcomposerwin.h"
#include <KMime/Message>
#include <MessageCore/StringUtil>
#include <TemplateParser/TemplateParserJob>
#include <KIdentityManagement/IdentityManager>
......
......@@ -118,7 +118,6 @@
#include <QByteArray>
#include <QFileDialog>
#include <QFontDatabase>
#include <QList>
#include <QProgressDialog>
#include <QStandardPaths>
......
......@@ -2,7 +2,6 @@
#include "kmkernel.h"
#include "settings/kmailsettings.h"
#include <PimCommon/BroadcastStatus>
#include "job/opencomposerjob.h"
#include "job/newmessagejob.h"
......@@ -68,7 +67,6 @@ using KMail::MailServiceImpl;
#include <KMessageBox>
#include <KNotification>
#include <Libkdepim/ProgressManager>
#include <KConfig>
#include <KConfigGroup>
......
......@@ -21,7 +21,6 @@
#include "kmmainwin.h"
#include <TemplateParser/CustomTemplatesMenu>
#include <MailCommon/FolderSelectionDialog>
#include <MailCommon/FolderTreeWidget>
#include <PimCommonAkonadi/MailUtil>
#include "util.h"
......@@ -150,7 +149,6 @@
#include <KStringHandler>
#include <KConfigGroup>
#include <KXMLGUIFactory>
#include <KXMLGUIClient>
#include <QStatusBar>
#include <QAction>
#include <KRecentFilesAction>
......
......@@ -49,8 +49,6 @@
#include <tag/tagactionmanager.h>
#include <tag/tagselectdialog.h>
#include <MessageViewer/Viewer>
#include <AkonadiCore/item.h>
#include <AkonadiCore/itemcopyjob.h>
#include <AkonadiCore/itemcreatejob.h>
#include <AkonadiCore/itemmovejob.h>
......
......@@ -37,7 +37,6 @@ using MessageViewer::CSSHelper;
#include <kmime/kmime_mdn.h>
#include <akonadi/kmime/messageflags.h>
#include <MessageViewer/Viewer>
using namespace MessageViewer;
#include <MessageCore/MessageCoreSettings>
......
......@@ -18,7 +18,6 @@
#include "kmail_debug.h"
#include <QMenu>
#include <KLocalizedString>
#include <QAction>
#include "widgets/kactionmenutransport.h"
......
......@@ -6,10 +6,8 @@
#include "searchdescriptionattribute.h"
#include <QByteArray>
#include <QDataStream>
#include <AkonadiCore/Collection>
using namespace Akonadi;
......
......@@ -18,7 +18,6 @@
#include <KLocalizedString>
#include "kmail_debug.h"
#include <QList>
using namespace KMail;
......
......@@ -9,7 +9,6 @@
#include <KUserFeedback/PlatformInfoSource>
#include <KUserFeedback/ScreenInfoSource>
#include <KUserFeedback/QtVersionSource>
#include <KUserFeedback/Provider>
#include <KUserFeedback/StartCountSource>
#include <KUserFeedback/UsageTimeSource>
#include <KUserFeedback/LocaleInfoSource>
......
......@@ -18,7 +18,6 @@
#include <QAction>
#include <QStandardPaths>
#include <MailCommon/FolderSettings>
using namespace MailCommon;
using namespace KMail;
......
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