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 <QFileInfo>
#include <qalgorithms.h>
#include <QNetworkAccessManager>
#include <KLocalizedString>

View file

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

View file

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

View file

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

View file

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