From bf46e06f75763ac5f8f29aa0c83f33903d64a245 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 16 Feb 2021 23:31:25 +0200 Subject: [PATCH] drkonqi: remove unused SystemInformation methods Signed-off-by: Ivailo Monev --- drkonqi/systeminformation.cpp | 22 +--------------------- drkonqi/systeminformation.h | 5 ----- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/drkonqi/systeminformation.cpp b/drkonqi/systeminformation.cpp index 4a003cf4..a31abb98 100644 --- a/drkonqi/systeminformation.cpp +++ b/drkonqi/systeminformation.cpp @@ -28,10 +28,7 @@ #include -#include #include -#include -#include #include SystemInformation::SystemInformation(QObject * parent) @@ -40,16 +37,10 @@ SystemInformation::SystemInformation(QObject * parent) // NOTE: the relative order is important here m_system = fetchOSDetailInformation(); m_release = fetchOSReleaseInformation(); - - KConfigGroup config(KGlobal::config(), "SystemInformation"); - m_compiledSources = config.readEntry("CompiledSources", false); } SystemInformation::~SystemInformation() { - KConfigGroup config(KGlobal::config(), "SystemInformation"); - config.writeEntry("CompiledSources", m_compiledSources); - config.sync(); } //this function maps the operating system to an OS value that is accepted by bugs.kde.org. @@ -128,8 +119,7 @@ QString SystemInformation::fetchOSReleaseInformation() const // the PRETTY_NAME entry should be the most appropriate one, // but I could be wrong. - const QString prettyName = distroInfos.value("PRETTY_NAME", "unspecified"); - return prettyName; + return distroInfos.value("PRETTY_NAME", "unspecified"); } QString SystemInformation::system() const @@ -142,16 +132,6 @@ QString SystemInformation::release() const return m_release; } -bool SystemInformation::compiledSources() const -{ - return m_compiledSources; -} - -void SystemInformation::setCompiledSources(bool compiled) -{ - m_compiledSources = compiled; -} - QString SystemInformation::kdeVersion() const { return KDE::versionString(); diff --git a/drkonqi/systeminformation.h b/drkonqi/systeminformation.h index ae9d1f0e..44084d43 100644 --- a/drkonqi/systeminformation.h +++ b/drkonqi/systeminformation.h @@ -32,9 +32,6 @@ class SystemInformation: public QObject QString system() const; QString release() const; - bool compiledSources() const; - void setCompiledSources(bool); - QString kdeVersion() const; QString qtVersion() const; @@ -45,8 +42,6 @@ class SystemInformation: public QObject QString m_system; QString m_release; - - bool m_compiledSources; }; #endif