mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
drkonqi: remove unused SystemInformation::fetchOSBasicInformation()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ee420cab23
commit
0ca8b78635
2 changed files with 2 additions and 28 deletions
|
@ -43,33 +43,6 @@ SystemInformation::~SystemInformation()
|
|||
{
|
||||
}
|
||||
|
||||
//this function maps the operating system to an OS value that is accepted by bugs.kde.org.
|
||||
//if the values change on the server side, they need to be updated here as well.
|
||||
QString SystemInformation::fetchOSBasicInformation() const
|
||||
{
|
||||
//krazy:excludeall=cpp
|
||||
//Get the base OS string (bugzillaOS)
|
||||
#if defined(Q_OS_LINUX)
|
||||
return QLatin1String("Linux");
|
||||
#elif defined(Q_OS_HURD)
|
||||
return QLatin1String("Hurd");
|
||||
#elif defined(Q_OS_FREEBSD)
|
||||
return QLatin1String("FreeBSD");
|
||||
#elif defined(Q_OS_NETBSD)
|
||||
return QLatin1String("NetBSD");
|
||||
#elif defined(Q_OS_OPENBSD)
|
||||
return QLatin1String("OpenBSD");
|
||||
#elif defined(Q_OS_DRAGONFLY)
|
||||
return QLatin1String("DragonFly BSD");
|
||||
#elif defined(Q_OS_SOLARIS)
|
||||
return QLatin1String("Solaris");
|
||||
#else
|
||||
#warning fetchOSBasicInformation() not implemented
|
||||
return QLatin1String("unspecified");
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
QString SystemInformation::fetchOSDetailInformation() const
|
||||
{
|
||||
QString operatingSystem = "unspecified";
|
||||
|
@ -82,6 +55,8 @@ QString SystemInformation::fetchOSDetailInformation() const
|
|||
+ QString::fromLocal8Bit(buf.release) + ' '
|
||||
+ QString::fromLocal8Bit(buf.machine);
|
||||
}
|
||||
#else
|
||||
#warning fetchOSDetailInformation() not implemented
|
||||
#endif
|
||||
|
||||
return operatingSystem;
|
||||
|
|
|
@ -36,7 +36,6 @@ class SystemInformation: public QObject
|
|||
QString qtVersion() const;
|
||||
|
||||
private:
|
||||
QString fetchOSBasicInformation() const;
|
||||
QString fetchOSDetailInformation() const;
|
||||
QString fetchOSReleaseInformation() const;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue