Pārlūkot izejas kodu

Removed some unnecessary includes and some other stuff

Malte Veerman 6 gadi atpakaļ
vecāks
revīzija
158a6ba22f

+ 1 - 3
import/src/guibase.cpp

@@ -55,9 +55,7 @@ GUIBase::GUIBase(QObject *parent) : QObject(parent),
     connect(m_com, &SystemdCommunicator::needsApplyChanged, this, &GUIBase::needsApplyChanged);
 #endif
 
-    const auto locale = QLocale::system();
-    const auto system = locale.measurementSystem();
-    m_unit = (system == QLocale::ImperialUSSystem) ? QStringLiteral("°F") : QStringLiteral("°C");
+    m_unit = (QLocale::system().measurementSystem() == QLocale::ImperialUSSystem) ? QStringLiteral("°F") : QStringLiteral("°C");
     emit unitChanged(m_unit);
 
     m_loader->parseHwmons();

+ 0 - 2
import/src/hwmon.h

@@ -22,8 +22,6 @@
 #define HWMON_H
 
 #include <QtCore/QObject>
-#include <QtCore/QString>
-#include <QtCore/QList>
 
 
 namespace Fancontrol

+ 0 - 1
import/src/loader.cpp

@@ -30,7 +30,6 @@
 #include <QtCore/QDir>
 #include <QtCore/QTextStream>
 #include <QtCore/QTimer>
-#include <QtCore/QProcess>
 
 #include <KAuth/KAuthExecuteJob>
 #include <KI18n/KLocalizedString>

+ 0 - 5
import/src/loader.h

@@ -23,14 +23,9 @@
 
 #include <QtCore/QObject>
 #include <QtCore/QUrl>
-#include <QtCore/QList>
-#include <QtCore/QString>
-#include <QtCore/QPair>
 
 
 class QTimer;
-class KJob;
-class QProcess;
 
 namespace Fancontrol
 {

+ 0 - 1
import/src/pwmfan.h

@@ -29,7 +29,6 @@
 
 
 class QTextStream;
-class KJob;
 
 namespace Fancontrol
 {

+ 0 - 1
import/src/sensor.h

@@ -22,7 +22,6 @@
 #define SENSOR_H
 
 #include <QtCore/QObject>
-#include <QtCore/QString>
 
 
 namespace Fancontrol

+ 0 - 4
import/src/systemdcommunicator.h

@@ -22,13 +22,9 @@
 #define SYSTEMDCOMMUNICATOR_H
 
 #include <QtCore/QObject>
-#include <QtCore/QString>
-#include <QtCore/QVariantMap>
-#include <QtCore/QVariantList>
 
 
 class QDBusInterface;
-class KJob;
 
 namespace Fancontrol
 {