Commit b6a9acfe 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 01271fc8
......@@ -7,7 +7,6 @@
// BEGIN Includes
#include "katebacktracebrowser.h"
#include "btfileindexer.h"
#include "btparser.h"
#include <KAboutData>
......@@ -27,7 +26,6 @@
#include <QFileDialog>
#include <QFileInfo>
#include <QStandardPaths>
#include <QTimer>
#include <QTreeWidget>
#include <QUrl>
// END Includes
......
......@@ -33,7 +33,6 @@
#include <KPluginFactory>
#include <KPluginLoader>
#include <KTextEditor/Application>
#include <KTextEditor/Editor>
#include <KTextEditor/MainWindow>
#include <KXMLGUIFactory>
#include <QFileInfo>
......
......@@ -34,7 +34,6 @@
#include <QLineEdit>
#include <QStyle>
#include <QVBoxLayout>
#include <QMenu>
#include <kio_version.h>
#if KIO_VERSION < QT_VERSION_CHECK(5, 71, 0)
......@@ -45,7 +44,6 @@
# include <KIO/JobUiDelegate>
#endif
#include <KApplicationTrader>
#include "katefilebrowseropenwithmenu.h"
// END Includes
......
......@@ -11,7 +11,6 @@
#include "ioview.h"
#include <QDir>
#include <QFile>
#include <QFontDatabase>
#include <QLineEdit>
#include <QScrollBar>
......
......@@ -10,7 +10,6 @@
#include <QFont>
#include <QFontDatabase>
#include <QFontMetrics>
#include <QIcon>
#include <QSize>
#include <QStringList>
#include <QVariant>
......
......@@ -19,7 +19,6 @@
#include <ktexteditor/application.h>
#include <ktexteditor/document.h>
#include <ktexteditor/mainwindow.h>
#include <ktexteditor/plugin.h>
#include <ktexteditor/view.h>
......
......@@ -15,7 +15,6 @@
#include <QSqlDatabase>
#include <QSqlDriver>
#include <QSqlError>
#include <QSqlQuery>
using KWallet::Wallet;
......
......@@ -5,7 +5,6 @@
*/
#include "textoutputwidget.h"
#include "connection.h"
#include <KLocalizedString>
#include <KToolBar>
......
......@@ -16,7 +16,6 @@
#include <KLocalizedString>
#include <KTextEditor/Document>
#include <KTextEditor/MainWindow>
#include <KTextEditor/Message>
#include <KTextEditor/MovingInterface>
#include <KTextEditor/View>
......
......@@ -17,7 +17,6 @@
#include <KIO/StatJob>
#include <KJobWidgets>
#include <KLocalizedString>
#include <KPluginFactory>
#include <KPluginLoader>
#include <KXMLGUIFactory>
#include <QAction>
......
......@@ -7,12 +7,10 @@
#include "kateprojectplugin.h"
#include "kateproject.h"
#include "kateprojectconfigpage.h"
#include "kateprojectpluginview.h"
#include <ktexteditor/application.h>
#include <ktexteditor/document.h>
#include <ktexteditor/editor.h>
#include <ktexteditor_version.h> // delete, when we depend on KF 5.63
......
......@@ -6,7 +6,6 @@
*/
#include "kateprojectworker.h"
#include "kateproject.h"
#include <QDir>
#include <QDirIterator>
......
......@@ -8,7 +8,6 @@
#include "replicodeconfig.h"
#include "replicodesettings.h"
#include <QProcess>
#include <QPushButton>
#include <QTemporaryFile>
#include <QtGlobal>
......
......@@ -19,7 +19,6 @@
#include <QDebug>
#include <QDir>
#include <QFileInfo>
#include <QFileInfoList>
#include <QMimeDatabase>
#include <QMimeType>
......
......@@ -19,7 +19,6 @@
#include "KateSearchCommand.h"
#include "htmldelegate.h"
#include <ktexteditor/application.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/document.h>
#include <ktexteditor/editor.h>
......
......@@ -17,7 +17,6 @@
#include "search_open_files.h"
#include <QElapsedTimer>
SearchOpenFiles::SearchOpenFiles(QObject *parent)
: QObject(parent)
......
......@@ -27,7 +27,6 @@
#include <QGraphicsProxyWidget>
#include <QIcon>
#include <QListWidgetItem>
#include <QStandardItemModel>
#include <QStandardPaths>
#include <QStyleOptionGraphicsItem>
#include <QTreeView>
......
......@@ -6,7 +6,6 @@
*/
#include "katesnippets.h"
#include "katesnippetglobal.h"
#include "snippetcompletionmodel.h"
#include "snippetview.h"
......
......@@ -24,7 +24,6 @@
#include <KMessageBox>
#include <QApplication>
#include <QDebug>
#include <QDir>
#include <KColorScheme>
......
......@@ -42,7 +42,6 @@
#include <KAboutData>
#include <KActionCollection>
#include <KConfigGroup>
#include <KLocalizedString>
#include <KPluginFactory>
#include <KPluginLoader>
#include <KSharedConfig>
......@@ -54,14 +53,10 @@
#include <ktexteditor/cursor.h>
#include <QGroupBox>
#include <QPixmap>
#include <QVBoxLayout>
#include <QHeaderView>
#include <QMenu>
#include <QPainter>
#include <QResizeEvent>
#include <QTimer>
K_PLUGIN_FACTORY_WITH_JSON(KatePluginSymbolViewerFactory, "katesymbolviewerplugin.json", registerPlugin<KatePluginSymbolViewer>();)
......
......@@ -22,7 +22,6 @@
#include <KLineEdit>
#include <KLocalizedString>
#include <KMessageBox>
#include <KProcess>
#include <QAction>
#include <QDialog>
#include <QString>
......
......@@ -62,7 +62,6 @@
#include <KMessageBox>
#include <KPluginFactory>
#include <QAction>
#include <QProcess>
#include <QTemporaryFile>
#include <QComboBox>
......@@ -79,7 +78,6 @@
#include <QVBoxLayout>
#include <ktexteditor/editor.h>
#include <ktexteditor/mainwindow.h>
#include <kxmlguifactory.h>
......
......@@ -77,12 +77,10 @@ TODO:
#include <QPushButton>
#include <QRegularExpression>
#include <QStandardPaths>
#include <QString>
#include <QUrl>
#include <QVBoxLayout>
#include <ktexteditor/editor.h>
#include <ktexteditor/mainwindow.h>
#include <KActionCollection>
#include <KHistoryComboBox>
......
......@@ -23,7 +23,6 @@
#include "pseudo_dtd.h"
#include <QRegExp>
#include <qdom.h>
#include <KLocalizedString>
#include <KMessageBox>
......
......@@ -7,10 +7,8 @@
#include "kateapp.h"
#include "katemainwindow.h"
#include "kateviewmanager.h"
#include <KConfig>
#include <KConfigGroup>
#include <KConfigGui>
#include <KLocalizedString>
......
......@@ -7,9 +7,7 @@
#include "katecolorschemechooser.h"
#include <QAction>
#include <QActionGroup>
#include <QApplication>
#include <QDirIterator>
#include <QFileInfo>
#include <QMenu>
......@@ -20,7 +18,6 @@
#include <KActionCollection>
#include <KActionMenu>
#include <KColorSchemeManager>
#include <KConfigGroup>
#include <KLocalizedString>
#include <KSharedConfig>
......
......@@ -18,7 +18,6 @@
#include "katesessionmanager.h"
#include "kateviewmanager.h"
#include <KTextEditor/ConfigPage>
#include <KConfigGroup>
#include <KLocalizedString>
......
......@@ -14,7 +14,6 @@
#include "katesavemodifieddialog.h"
#include "kateviewmanager.h"
#include <ktexteditor/editor.h>
#include <ktexteditor/view.h>
#include <KCodecs>
......@@ -25,10 +24,7 @@
#include <KMessageBox>
#include <QApplication>
#include <QByteArray>
#include <QDateTime>
#include <QFileDialog>
#include <QHash>
#include <QListView>
#include <QProgressDialog>
#include <QTextCodec>
......
......@@ -25,7 +25,6 @@
#include "katesessionmanager.h"
#include "katesessionsaction.h"
#include "kateupdatedisabler.h"
#include "kateviewmanager.h"
#include "kateviewspace.h"
#include <KAboutData>
......@@ -64,9 +63,6 @@
#include <QApplication>
#include <QDesktopWidget>
#include <QDir>
#include <QDragEnterEvent>
#include <QDropEvent>
#include <QEvent>
#include <QFontDatabase>
#include <QList>
#include <QMenu>
......
......@@ -22,10 +22,8 @@
#include <KWindowConfig>
#include <KXMLGUIFactory>
#include <QChildEvent>
#include <QContextMenuEvent>
#include <QDomDocument>
#include <QEvent>
#include <QMenu>
#include <QPixmap>
#include <QShortcut>
......
......@@ -8,7 +8,6 @@
#include "katequickopenmodel.h"
#include "kateapp.h"
#include "katemainwindow.h"
#include "kateviewmanager.h"
#include <ktexteditor/document.h>
......
......@@ -12,10 +12,8 @@
#include "kwriteapplication.h"
#include <ktexteditor/application.h>
#include <ktexteditor/document.h>
#include <ktexteditor/editor.h>
#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/view.h>
#include <KActionCollection>
#include <KConfig>
......
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