mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
drkonqi: remove unused SystemInformation methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
02229c1726
commit
bf46e06f75
2 changed files with 1 additions and 26 deletions
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue