Commit 25504b18 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 f8b8c0b4
......@@ -31,7 +31,6 @@
#include "logMode.h"
#include "logFileReader.h"
#include "logFile.h"
Analyzer::Analyzer(LogMode *mode)
: QObject(nullptr)
......
......@@ -32,7 +32,6 @@
#include "logMode.h"
#include "logFileReader.h"
#include "logFile.h"
FileAnalyzer::FileAnalyzer(LogMode *logMode)
: Analyzer(logMode)
......
......@@ -21,20 +21,16 @@
#include "globals.h"
#include <QString>
#include <QList>
#include <QMap>
#include <KLocalizedString>
#include "defaults.h"
#include "logLevel.h"
#include "logMode.h"
#include "logFile.h"
#include "analyzer.h"
#include "logModeAction.h"
#include "logModeFactory.h"
#include "logModeConfiguration.h"
#include "logModeConfigurationWidget.h"
......
......@@ -28,7 +28,6 @@
#include <KDirWatch>
#include "logFile.h"
#include "logging.h"
#define READ_SIZE 10
......
......@@ -22,7 +22,6 @@
#include "loadingBar.h"
#include <QApplication>
#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QProgressBar>
......
......@@ -30,7 +30,6 @@
#include <KLocalizedString>
#include <KFilterDev>
#include "logFileReader.h"
#include "logFileReaderPrivate.h"
#include "logging.h"
......
......@@ -21,15 +21,12 @@
#include "logLine.h"
#include <QStringList>
#include <QDateTime>
#include "logMode.h"
#include "logModeItemBuilder.h"
#include "logViewWidgetItem.h"
#include "logging.h"
#include "globals.h"
#include "ksystemlogConfig.h"
class LogLinePrivate
......
......@@ -26,7 +26,6 @@
#include <KLocalizedString>
#include "logFile.h"
#include "logLevel.h"
#include "globals.h"
......
......@@ -21,8 +21,6 @@
#include "logViewColumn.h"
#include <QString>
#include <QDataStream>
class LogViewColumnPrivate
{
......
......@@ -22,7 +22,6 @@
#include "logViewColumns.h"
#include <QStringList>
#include <QList>
#include "logging.h"
......
......@@ -22,7 +22,6 @@
#include "logViewExport.h"
#include <QApplication>
#include <QPainter>
#include <QClipboard>
#include <QPrinter>
#include <QPrintDialog>
......
......@@ -23,7 +23,6 @@
// Qt includes
#include <QTreeWidgetItem>
#include <QBrush>
......
......@@ -22,12 +22,10 @@
#include "processOutputLogFileReader.h"
#include <QTimer>
#include <QProcess>
#include <QStringList>
#include <KLocalizedString>
#include "logFileReader.h"
#include "logFileReaderPrivate.h"
#include "logging.h"
......
......@@ -21,7 +21,6 @@
#include "view.h"
#include <QWidget>
#include <QDropEvent>
#include <QDragEnterEvent>
......@@ -40,8 +39,6 @@
#include "logViewSearchWidget.h"
#include "logLine.h"
#include "logViewColumn.h"
#include "logViewColumns.h"
#include "ksystemlogConfig.h"
......
......@@ -37,9 +37,7 @@
#include <KService>
#include <KServiceTypeTrader>
#include <KToggleAction>
#include <KConfig>
#include <KUrlRequesterDialog>
......@@ -76,7 +74,6 @@
#include "logModePluginsLoader.h"
#include "globals.h"
#include "logModeAction.h"
namespace KSystemLog
{
......
......@@ -21,7 +21,6 @@
#include "acpidFactory.h"
#include <QList>
#include "logMode.h"
#include "logging.h"
......@@ -29,7 +28,6 @@
#include "simpleAction.h"
#include "acpidLogMode.h"
#include "logModeFactory.h"
QList<LogMode *> AcpidLogModeFactory::createLogModes() const
{
......
......@@ -21,12 +21,10 @@
#include "acpidLogMode.h"
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "acpidAnalyzer.h"
#include "acpidItemBuilder.h"
......
......@@ -22,12 +22,10 @@
#include "apacheAccessLogMode.h"
#include <QAction>
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "apacheAccessAnalyzer.h"
#include "apacheAccessItemBuilder.h"
......
......@@ -22,12 +22,10 @@
#include "apacheLogMode.h"
#include <QAction>
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "apacheAnalyzer.h"
#include "apacheItemBuilder.h"
......
......@@ -21,7 +21,6 @@
#include "authenticationFactory.h"
#include <QList>
#include "logMode.h"
#include "logging.h"
......@@ -29,7 +28,6 @@
#include "simpleAction.h"
#include "authenticationLogMode.h"
#include "logModeFactory.h"
QList<LogMode *> AuthenticationLogModeFactory::createLogModes() const
{
......
......@@ -21,12 +21,10 @@
#include "authenticationLogMode.h"
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "authenticationAnalyzer.h"
#include "logModeItemBuilder.h"
......
......@@ -21,7 +21,6 @@
#include "cronFactory.h"
#include <QList>
#include "logMode.h"
#include "logging.h"
......@@ -29,7 +28,6 @@
#include "simpleAction.h"
#include "cronLogMode.h"
#include "logModeFactory.h"
QList<LogMode *> CronLogModeFactory::createLogModes() const
{
......
......@@ -21,12 +21,10 @@
#include "cronLogMode.h"
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "cronAnalyzer.h"
#include "cronConfigurationWidget.h"
......
......@@ -22,12 +22,10 @@
#include "cupsAccessLogMode.h"
#include <QAction>
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "cupsAccessAnalyzer.h"
#include "cupsAccessItemBuilder.h"
......
......@@ -22,12 +22,10 @@
#include "cupsLogMode.h"
#include <QAction>
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "cupsAnalyzer.h"
#include "cupsItemBuilder.h"
......
......@@ -22,12 +22,10 @@
#include "cupsPageLogMode.h"
#include <QAction>
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "cupsPageAnalyzer.h"
#include "cupsPageItemBuilder.h"
......
......@@ -22,12 +22,10 @@
#include "cupsPdfLogMode.h"
#include <QAction>
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "cupsPdfAnalyzer.h"
#include "cupsPdfItemBuilder.h"
......
......@@ -21,7 +21,6 @@
#include "daemonFactory.h"
#include <QList>
#include "logMode.h"
#include "logging.h"
......@@ -29,7 +28,6 @@
#include "simpleAction.h"
#include "daemonLogMode.h"
#include "logModeFactory.h"
QList<LogMode *> DaemonLogModeFactory::createLogModes() const
{
......
......@@ -21,18 +21,11 @@
#include "daemonLogMode.h"
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "syslogAnalyzer.h"
#include "daemonConfigurationWidget.h"
#include "daemonConfiguration.h"
#include "logModeItemBuilder.h"
DaemonLogMode::DaemonLogMode()
: LogMode(QStringLiteral(DAEMON_LOG_MODE_ID), i18n("Daemons' Logs"), QStringLiteral(DAEMON_MODE_ICON))
......
......@@ -22,7 +22,6 @@
#include "journaldAnalyzer.h"
#include "logViewModel.h"
#include "logFile.h"
#include <KLocalizedString>
......
......@@ -26,7 +26,6 @@
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "journaldLocalAnalyzer.h"
#include "journaldNetworkAnalyzer.h"
......
......@@ -21,7 +21,6 @@
#include "kernelFactory.h"
#include <QList>
#include "logMode.h"
#include "logging.h"
......@@ -29,7 +28,6 @@
#include "simpleAction.h"
#include "kernelLogMode.h"
#include "logModeFactory.h"
QList<LogMode *> KernelLogModeFactory::createLogModes() const
{
......
......@@ -21,13 +21,11 @@
#include "kernelLogMode.h"
#include <QList>
#include <QAction>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "kernelAnalyzer.h"
#include "kernelItemBuilder.h"
......
......@@ -22,7 +22,6 @@
#include "openLogMode.h"
#include <QString>
#include <QList>
#include <QFileDialog>
#include <KLocalizedString>
......@@ -31,7 +30,6 @@
#include <KMessageBox>
#include "logging.h"
#include "logMode.h"
#include "logModeItemBuilder.h"
#include "openAnalyzer.h"
......
......@@ -21,7 +21,6 @@
#include "postfixFactory.h"
#include <QList>
#include "logMode.h"
#include "logging.h"
......@@ -29,7 +28,6 @@
#include "simpleAction.h"
#include "postfixLogMode.h"
#include "logModeFactory.h"
QList<LogMode *> PostfixLogModeFactory::createLogModes() const
{
......
......@@ -21,12 +21,10 @@
#include "postfixLogMode.h"
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "postfixAnalyzer.h"
#include "postfixConfigurationWidget.h"
......
......@@ -22,12 +22,10 @@
#include "netbiosLogMode.h"
#include <QAction>
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "sambaAnalyzer.h"
#include "sambaItemBuilder.h"
......
......@@ -22,12 +22,10 @@
#include "sambaAccessLogMode.h"
#include <QAction>
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "sambaAnalyzer.h"
#include "sambaItemBuilder.h"
......
......@@ -21,13 +21,11 @@
#include "sambaLogMode.h"
#include <QList>
#include <QAction>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "sambaAnalyzer.h"
#include "sambaItemBuilder.h"
......
......@@ -21,7 +21,6 @@
#include "systemFactory.h"
#include <QList>
#include "logMode.h"
#include "logging.h"
......@@ -29,7 +28,6 @@
#include "simpleAction.h"
#include "systemLogMode.h"
#include "logModeFactory.h"
QList<LogMode *> SystemLogModeFactory::createLogModes() const
{
......
......@@ -21,12 +21,10 @@
#include "systemLogMode.h"
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "systemAnalyzer.h"
#include "systemConfigurationWidget.h"
......
......@@ -21,7 +21,6 @@
#include "xorgFactory.h"
#include <QList>
#include "logMode.h"
#include "logging.h"
......@@ -29,7 +28,6 @@
#include "simpleAction.h"
#include "xorgLogMode.h"
#include "logModeFactory.h"
QList<LogMode *> XorgLogModeFactory::createLogModes() const
{
......
......@@ -21,12 +21,10 @@
#include "xorgLogMode.h"
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "xorgAnalyzer.h"
#include "xorgItemBuilder.h"
......
......@@ -21,7 +21,6 @@
#include "xsessionFactory.h"
#include <QList>
#include "logMode.h"
#include "logging.h"
......@@ -29,7 +28,6 @@
#include "simpleAction.h"
#include "xsessionLogMode.h"
#include "logModeFactory.h"
QList<LogMode *> XSessionLogModeFactory::createLogModes() const
{
......
......@@ -21,12 +21,10 @@
#include "xsessionLogMode.h"
#include <QList>
#include <KLocalizedString>
#include "logging.h"
#include "logMode.h"
#include "xsessionAnalyzer.h"
#include "xsessionItemBuilder.h"
......
......@@ -22,7 +22,6 @@
#include "tabLogViewsWidget.h"
#include <QPushButton>
#include <QList>
#include <QMenu>
#include <KLocalizedString>
......
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