Further KIO::AccessManager cleanup

This commit is contained in:
Albert Vaca Cintora 2023-04-10 10:29:08 +02:00
parent 2c2e883288
commit 74caaface0
5 changed files with 1 additions and 10 deletions

View file

@ -12,6 +12,7 @@
#include <QDebug> #include <QDebug>
#include <QFileInfo> #include <QFileInfo>
#include <qalgorithms.h> #include <qalgorithms.h>
#include <QNetworkAccessManager>
#include <KLocalizedString> #include <KLocalizedString>

View file

@ -9,7 +9,6 @@
#include <QCommandLineParser> #include <QCommandLineParser>
#include <QDBusMessage> #include <QDBusMessage>
#include <QIcon> #include <QIcon>
#include <QNetworkAccessManager>
#include <QProcess> #include <QProcess>
#include <QSessionManager> #include <QSessionManager>
#include <QStandardPaths> #include <QStandardPaths>
@ -17,7 +16,6 @@
#include <KAboutData> #include <KAboutData>
#include <KDBusService> #include <KDBusService>
#include <KIO/AccessManager>
#include <KLocalizedString> #include <KLocalizedString>
#include <KNotification> #include <KNotification>
#include <KWindowSystem> #include <KWindowSystem>
@ -38,7 +36,6 @@ class DesktopDaemon : public Daemon
public: public:
DesktopDaemon(QObject *parent = nullptr) DesktopDaemon(QObject *parent = nullptr)
: Daemon(parent) : Daemon(parent)
, m_nam(nullptr)
{ {
qApp->setWindowIcon(QIcon(QStringLiteral(":/icons/kdeconnect/kdeconnect.svg"))); qApp->setWindowIcon(QIcon(QStringLiteral(":/icons/kdeconnect/kdeconnect.svg")));
} }
@ -92,9 +89,6 @@ public:
{ {
QApplication::quit(); QApplication::quit();
} }
private:
QNetworkAccessManager *m_nam;
}; };
// Copied from plasma-workspace/libkworkspace/kworkspace.cpp // Copied from plasma-workspace/libkworkspace/kworkspace.cpp

View file

@ -5,7 +5,6 @@
*/ */
#include <QCoreApplication> #include <QCoreApplication>
#include <QNetworkAccessManager>
#include <QSignalSpy> #include <QSignalSpy>
#include <QSocketNotifier> #include <QSocketNotifier>
#include <QStandardPaths> #include <QStandardPaths>

View file

@ -5,7 +5,6 @@
*/ */
#include <QCoreApplication> #include <QCoreApplication>
#include <QNetworkAccessManager>
#include <QSignalSpy> #include <QSignalSpy>
#include <QSocketNotifier> #include <QSocketNotifier>
#include <QStandardPaths> #include <QStandardPaths>

View file

@ -18,7 +18,6 @@ class TestDaemon : public Daemon
public: public:
TestDaemon(QObject *parent = nullptr) TestDaemon(QObject *parent = nullptr)
: Daemon(parent, true) : Daemon(parent, true)
, m_nam(nullptr)
, m_jobTrackerInterface(nullptr) , m_jobTrackerInterface(nullptr)
{ {
// Necessary to force the event loop to run because the test harness seems to behave differently // Necessary to force the event loop to run because the test harness seems to behave differently
@ -60,7 +59,6 @@ public:
} }
private: private:
QNetworkAccessManager *m_nam;
KJobTrackerInterface *m_jobTrackerInterface; KJobTrackerInterface *m_jobTrackerInterface;
}; };