drkonqi: remove unused SystemInformation methods

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-02-16 23:31:25 +02:00
parent 02229c1726
commit bf46e06f75
2 changed files with 1 additions and 26 deletions

View file

@ -28,10 +28,7 @@
#include <QtCore/QFile>
#include <KStandardDirs>
#include <KDebug>
#include <KConfig>
#include <KConfigGroup>
#include <kdeversion.h>
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();

View file

@ -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