Commit f2bd4b7a 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 27873cd6
Pipeline #38476 passed with stage
in 45 minutes and 42 seconds
......@@ -11,7 +11,6 @@
#include <MessageComposer/Util>
#include <Libkleo/Enum>
#include <KMime/Message>
#include <KMime/Content>
......
......@@ -18,7 +18,6 @@
#include "MessageComposer/Composer"
#include "MessageComposer/GlobalPart"
#include <MessageViewer/EditorWatcher>
#include <MessageViewer/MessageViewerUtil>
#include <MimeTreeParser/NodeHelper>
......
......@@ -17,7 +17,6 @@
#include <kmime/kmime_headers.h>
#include <kmime/kmime_util.h>
#include <AkonadiCore/item.h>
#include <KFormat>
......
......@@ -17,7 +17,6 @@
#include <QVBoxLayout>
#include <QDialogButtonBox>
#include <QPushButton>
#include <QFormLayout>
#include <QLineEdit>
using namespace MessageComposer;
......
......@@ -18,7 +18,6 @@
#include <KIdentityManagement/kidentitymanagement/identitymanager.h>
#include <KIdentityManagement/kidentitymanagement/identity.h>
#include <Akonadi/KMime/MessageStatus>
#include <kmime/kmime_dateformatter.h>
#include <KEmailAddress>
#include <MessageCore/MailingList>
......
......@@ -7,7 +7,6 @@
#include "messagefactoryreplyjob.h"
#include "settings/messagecomposersettings.h"
#include <TemplateParser/TemplateParserJob>
#include <KIdentityManagement/IdentityManager>
using namespace MessageComposer;
......
......@@ -15,7 +15,6 @@
#include <KMime/Message>
#include <kmime/kmime_mdn.h>
#include <kmime/kmime_dateformatter.h>
#include <kmime/kmime_headers.h>
#include <kidentitymanagement/identitymanager.h>
#include <kidentitymanagement/identity.h>
#include "messagecomposer_debug.h"
......
......@@ -11,7 +11,6 @@
#include "job/protectedheaders.h"
#include "utils/util_p.h"
#include <Libkleo/Enum>
#include <QGpgME/Protocol>
#include <QGpgME/EncryptJob>
......
......@@ -11,7 +11,6 @@
#include "job/protectedheaders.h"
#include "utils/util_p.h"
#include <Libkleo/Enum>
#include <QGpgME/Protocol>
#include <QGpgME/SignEncryptJob>
......
......@@ -11,7 +11,6 @@
#include "job/protectedheaders.h"
#include "utils/util_p.h"
#include <Libkleo/Enum>
#include <QGpgME/Protocol>
#include <QGpgME/SignJob>
#include <QVector>
......
......@@ -7,7 +7,6 @@
#include "plugineditor.h"
#include "messagecomposer_debug.h"
#include "plugineditormanager.h"
#include <PimCommon/PluginUtil>
#include <QFileInfo>
#include <QSet>
......
......@@ -10,7 +10,6 @@
#include "messagecomposer_debug.h"
#include <QWidget>
#include <QApplication>
#include <QDesktopWidget>
......
......@@ -12,7 +12,6 @@
#include "recipientseditor.h"
#include "recipient.h"
#include "recipientline.h"
#include "recipientseditorsidewidget.h"
#include "settings/messagecomposersettings.h"
......
......@@ -14,7 +14,6 @@
#include "MessageComposer/Util"
#include "utils/util_p.h"
#include <kmime/kmime_message.h>
#include <Libkdepim/ProgressManager>
#include <MailTransportAkonadi/DispatcherInterface>
......
......@@ -12,7 +12,6 @@
#include <KLocalizedString>
#include <QDBusPendingCallWatcher>
#include <QDBusPendingReply>
#include <memory>
......
......@@ -22,7 +22,6 @@
#include <KIdentityManagement/Identity>
#include <QHostInfo>
#include <QRegularExpression>
#include <QStringList>
#include <QUrlQuery>
#include <KPIMTextEdit/TextUtils>
#include <KCodecs>
......
......@@ -10,7 +10,6 @@
#include "messageitem_p.h"
#include <PimCommonAkonadi/AnnotationDialog>
#include "theme.h"
#include <item.h>
#include <entityannotationsattribute.h>
......
......@@ -35,7 +35,6 @@
#include <QLineEdit>
#include <QMenu>
#include <QPainter>
#include <QVector>
#include <KLocalizedString>
#include "messagelist_debug.h"
......
......@@ -8,7 +8,6 @@
#include "quicksearchline.h"
#include "messagelistsettings.h"
#include <KStringHandler>
#include <Akonadi/KMime/MessageStatus>
#include "searchlinestatus.h"
#include <KLocalizedString>
......
......@@ -24,7 +24,6 @@
#include <QMouseEvent>
#include <QHeaderView>
#include <QRegularExpression>
#include <QVector>
#include <QApplication>
#include "storagemodel.h"
......
......@@ -11,11 +11,9 @@
#include <MessageCore/NodeHelper>
#include <attributefactory.h>
#include <collection.h>
#include <collectionstatistics.h>
#include <entitymimetypefiltermodel.h>
#include <entitytreemodel.h>
#include <item.h>
#include <itemmodifyjob.h>
#include <Akonadi/KMime/MessageFolderAttribute>
#include <selectionproxymodel.h>
......
......@@ -18,7 +18,6 @@
#include <QPushButton>
#include <QFrame>
#include <QMap>
#include <QListWidget>
#include <KMessageBox>
#include <KLocalizedString>
......
......@@ -7,7 +7,6 @@
*******************************************************************************/
#include "utils/themeeditor.h"
#include "core/theme.h"
#include "core/groupheaderitem.h"
#include "core/messageitem.h"
#include "core/modelinvariantrowmapper.h"
......@@ -25,9 +24,7 @@
#include <QGridLayout>
#include <QGroupBox>
#include <QHeaderView>
#include <QLabel>
#include <QMouseEvent>
#include <QTreeWidget>
#include <QPainter>
#include <QPaintEvent>
#include <QPixmap>
......
......@@ -7,7 +7,6 @@
#include "dkimcheckauthenticationstatusjob.h"
#include "dkimcheckfulljob.h"
#include "dkimcheckpolicyjob.h"
#include "dkimchecksignaturejob.h"
#include "dkimgeneraterulejob.h"
#include "dkimmanagerkey.h"
#include "dkimauthenticationstatusinfoconverter.h"
......
......@@ -5,7 +5,6 @@
*/
#include "dkimcheckpolicyjob.h"
#include "dmarcpolicyjob.h"
#include "dkim-verify/dkimmanagerrules.h"
#include "settings/messageviewersettings.h"
#include "messageviewer_dkimcheckerdebug.h"
......
......@@ -8,7 +8,6 @@
#include "dkimutil.h"
#include "messageviewer_dkimcheckerdebug.h"
#include <QStringList>
using namespace MessageViewer;
DKIMInfo::DKIMInfo()
......
......@@ -6,7 +6,6 @@
#include "dkimmanagerkey.h"
#include "dkimutil.h"
#include <KSharedConfig>
#include <KConfig>
#include <KConfigGroup>
#include <QRegularExpression>
......
......@@ -7,7 +7,6 @@
#include "dkimmanagerrules.h"
#include "dkimutil.h"
#include <KConfigGroup>
#include <KSharedConfig>
#include <QRegularExpression>
using namespace MessageViewer;
......
......@@ -7,7 +7,6 @@
#include "dkimutil.h"
#include "messageviewer_dkimcheckerdebug.h"
#include <QRegularExpression>
#include <QCryptographicHash>
QString MessageViewer::DKIMUtil::bodyCanonizationRelaxed(QString body)
{
......
......@@ -6,7 +6,6 @@
#include "dmarcpolicyjob.h"
#include "dmarcrecordjob.h"
#include "dmarcinfo.h"
#include "dkimutil.h"
#include "messageviewer_dkimcheckerdebug.h"
using namespace MessageViewer;
......
......@@ -6,7 +6,6 @@
#include "grantleeheaderformatter.h"
#include "headerstyle_util.h"
#include <GrantleeTheme/GrantleeTheme>
#include "settings/messageviewersettings.h"
#include "utils/iconnamecache.h"
#include "config-messageviewer.h"
......@@ -23,7 +22,6 @@
#include <grantlee/engine.h>
#include <grantlee/metatype.h>
#include <grantlee/templateloader.h>
using namespace MessageCore;
......
......@@ -22,10 +22,8 @@
#include <KEmailAddress>
#include <KLocalizedString>
#include <KTextToHTML>
#include <QBuffer>
#include <QVariantHash>
using namespace MessageCore;
......
......@@ -12,7 +12,6 @@
#include <QUrl>
#include <cassert>
#include <QByteArray>
#include <QTemporaryFile>
#include <QDir>
......
......@@ -12,7 +12,6 @@
#include <MessageViewer/FileHtmlWriter>
#include <MimeTreeParser/ObjectTreeParser>
#include <MimeTreeParser/MessagePart>
#include <KMime/Message>
......
......@@ -16,7 +16,6 @@
#include <QJsonDocument>
#include <QNetworkAccessManager>
#include <QNetworkConfigurationManager>
#include <QNetworkReply>
using namespace MessageViewer;
class MessageViewer::ScamExpandUrlJobPrivate
......
......@@ -8,7 +8,6 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "viewer_p.h"
#include "viewer.h"
#include "viewerpurposemenuwidget.h"
#include "messageviewer_debug.h"
......@@ -74,7 +73,6 @@
#include <QPrintDialog>
#include <QMimeDatabase>
#include <QWheelEvent>
#include <QPointer>
#include <WebEngineViewer/WebEngineExportHtmlPageJob>
//libkdepim
#include <PimCommon/BroadcastStatus>
......
......@@ -6,7 +6,6 @@
#include "blockexternalresourcesurlinterceptor.h"
#include <QWebEngineUrlRequestInfo>
#include <qtwebenginewidgetsversion.h>
using namespace MessageViewer;
......
......@@ -7,7 +7,6 @@
#include "viewerplugintoolmanager.h"
#include "viewerpluginmanager.h"
#include "viewerplugin.h"
#include "viewerplugininterface.h"
#include <QVector>
......
......@@ -13,8 +13,6 @@
#include "temporaryfile/attachmenttemporaryfilesdirs.h"
#include <KMime/Content>
#include <KMime/Message>
#include <KMime/Headers>
#include <QTemporaryFile>
#include <KLocalizedString>
......
......@@ -13,7 +13,6 @@
#include <KMime/Content>
#include <QMimeDatabase>
#include <QString>
using namespace MimeTreeParser;
using namespace MimeTreeParser::Util;
......
......@@ -5,7 +5,6 @@
*/
#include "checkphishingurljob.h"
#include "checkphishingurlutil.h"
#include <QNetworkAccessManager>
#include <PimCommon/NetworkManager>
#include <QJsonDocument>
......
......@@ -7,7 +7,6 @@
#include "createdatabasefilejob.h"
#include "webengineviewer_debug.h"
#include "downloadlocaldatabasethread.h"
#include <WebEngineViewer/CreatePhishingUrlDataBaseJob>
using namespace WebEngineViewer;
DownloadLocalDatabaseThread::DownloadLocalDatabaseThread(QObject *parent)
......
......@@ -6,7 +6,6 @@
#include "localdatabasemanager.h"
#include "localdatabasemanager_p.h"
#include "webengineviewer_debug.h"
#include "createphishingurldatabasejob.h"
#include "createdatabasefilejob.h"
#include "checkphishingurlutil.h"
#include "urlhashing.h"
......
......@@ -6,7 +6,6 @@
#include "searchfullhashjob.h"
#include "checkphishingurlutil.h"
#include <QNetworkAccessManager>
#include <QNetworkConfigurationManager>
#include <PimCommon/NetworkManager>
......
......@@ -7,7 +7,6 @@
#include "testwebengine.h"
#include <QHBoxLayout>
#include <QApplication>
#include <QWebEngineView>
#include <WebEngineViewer/WebHitTestResult>
#include <WebEngineViewer/WebEnginePage>
#include <QDebug>
......
......@@ -4,11 +4,9 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "networkpluginurlinterceptorinterface.h"
#include "networkurlinterceptormanager.h"
#include "networkurlinterceptorpluginmanager.h"
#include <WebEngineViewer/WebHitTestResult>
using namespace WebEngineViewer;
......
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