Commit 4c302ab3 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 3b96f860
......@@ -11,7 +11,6 @@
#include <resources/AbstractResource.h>
#include <QFile>
#include <QDebug>
#include <QTimer>
#include <QMetaProperty>
#include <QJsonDocument>
#include <QJsonArray>
......
......@@ -6,7 +6,6 @@
#include "ApplicationAddonsModel.h"
#include <resources/ResourcesModel.h>
#include <resources/PackageState.h>
#include <resources/AbstractResource.h>
#include <Transaction/TransactionModel.h>
#include "libdiscover_debug.h"
......
......@@ -6,7 +6,6 @@
// Own includes
#include "CategoryModel.h"
#include "Category.h"
#include "CategoriesReader.h"
#include "libdiscover_debug.h"
#include <QCollator>
......
......@@ -5,7 +5,6 @@
*/
#include "AppStreamIntegration.h"
#include <KOSRelease>
AppStreamIntegration * AppStreamIntegration::global()
{
......
......@@ -12,7 +12,6 @@
#include <QDebug>
#include "utils.h"
#include <KLocalizedString>
#include <AppStreamQt/component.h>
#include <AppStreamQt/release.h>
#include <AppStreamQt/screenshot.h>
#if APPSTREAM_HAS_SPDX
......
......@@ -23,12 +23,10 @@
#include <QDir>
#include "libdiscover_debug.h"
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QFile>
#include <QFileInfo>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QStandardPaths>
......
......@@ -7,7 +7,6 @@
#include "FlatpakBackend.h"
#include "FlatpakFetchDataJob.h"
#include "FlatpakResource.h"
#include "FlatpakSourcesBackend.h"
#include "FlatpakJobTransaction.h"
......@@ -20,7 +19,6 @@
#include <appstream/AppStreamUtils.h>
#include <AppStreamQt/bundle.h>
#include <AppStreamQt/component.h>
#include <AppStreamQt/icon.h>
#include <AppStreamQt/metadata.h>
......
......@@ -14,9 +14,6 @@
#include <QTimer>
extern "C" {
#include <flatpak.h>
#include <gio/gio.h>
#include <glib.h>
}
FlatpakJobTransaction::FlatpakJobTransaction(FlatpakResource *app, Role role, bool delayStart)
......
......@@ -10,7 +10,6 @@
#include <ReviewsBackend/Rating.h>
#include <ReviewsBackend/Review.h>
#include <resources/AbstractResource.h>
#include <attica/provider.h>
#include <attica/providermanager.h>
#include <attica/content.h>
#include <KLocalizedString>
......
......@@ -15,7 +15,6 @@
#include <QDebug>
#include <QTimer>
#include <KLocalizedString>
#include <PackageKit/Transaction>
#include <PackageKit/Daemon>
#include <functional>
......
......@@ -7,7 +7,6 @@
#include "PackageKitBackend.h"
#include "PackageKitSourcesBackend.h"
#include "PackageKitResource.h"
#include "PackageKitUpdater.h"
#include "AppPackageKitResource.h"
#include "PKTransaction.h"
......@@ -23,7 +22,6 @@
#include <QProcess>
#include <QStringList>
#include <QDebug>
#include <QTimer>
#include <QStandardPaths>
#include <QFile>
#include <QAction>
......@@ -32,7 +30,6 @@
#include <QFutureWatcher>
#include <QtConcurrentRun>
#include <PackageKit/Transaction>
#include <PackageKit/Daemon>
#include <PackageKit/Offline>
#include <PackageKit/Details>
......
......@@ -6,7 +6,6 @@
*/
#include "PackageKitMessages.h"
#include <PackageKit/Transaction>
#include <Daemon>
#include <KLocalizedString>
......
......@@ -9,7 +9,6 @@
#include "PackageKitBackend.h"
#include "PackageKitMessages.h"
#include <KLocalizedString>
#include <PackageKit/Details>
#include <PackageKit/Daemon>
#include <QJsonArray>
#include <QDebug>
......
......@@ -8,7 +8,6 @@
#include <QStandardItemModel>
#include <KLocalizedString>
#include <KDesktopFile>
#include <PackageKit/Transaction>
#include <PackageKit/Daemon>
#include <QAction>
#include <QProcess>
......
......@@ -5,7 +5,6 @@
*/
#include "AbstractResourcesBackend.h"
#include "AbstractResource.h"
#include "Category/Category.h"
#include <QHash>
#include <QMetaObject>
......
......@@ -12,8 +12,6 @@
#include <utils.h>
#include "ResourcesModel.h"
#include "AbstractResource.h"
#include "AbstractResourcesBackend.h"
#include <Category/CategoryModel.h>
#include <ReviewsBackend/Rating.h>
#include <Transaction/TransactionModel.h>
......
......@@ -11,7 +11,6 @@
#include "AbstractBackendUpdater.h"
#include "AbstractResource.h"
#include "utils.h"
#include <QDateTime>
#include "libdiscover_debug.h"
#include <KLocalizedString>
......
......@@ -11,10 +11,8 @@
#include <Transaction/Transaction.h>
#include <Transaction/TransactionModel.h>
#include <KLocalizedString>
#include <QDateTime>
#include "libdiscover_debug.h"
#include "utils.h"
#include <QTimer>
#include <QIcon>
StandardBackendUpdater::StandardBackendUpdater(AbstractResourcesBackend* parent)
......
......@@ -12,7 +12,6 @@
#include <QDBusMessage>
#include <QNetworkConfigurationManager>
#include <KLocalizedString>
#include <KNotification>
#include <KNotificationJobUiDelegate>
#include <KPluginFactory>
......
......@@ -5,7 +5,6 @@
*/
#include "NotifierItem.h"
#include <KStatusNotifierItem>
#include <KLocalizedString>
#include <QMenu>
#include <QDebug>
......
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