summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/systeminfo.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-12-04 22:35:44 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-12-05 11:19:32 +0100
commitac5fc26085e390cb55a3a5fd186a8091adcae2d4 (patch)
tree02bd09b3978a6345077d732f264f3d52e0845363 /rbutil/rbutilqt/base/systeminfo.cpp
parentc51c6c1eb314bb0d5037f3d8f260e9657e62b2f9 (diff)
downloadrockbox-ac5fc26085.tar.gz
rockbox-ac5fc26085.tar.bz2
rockbox-ac5fc26085.zip
rbutil: Make target list part of new player info.
Also remove the unused cases. Change-Id: Ic53c12c68f9d62d9c3e4406641355893e137bcf7
Diffstat (limited to 'rbutil/rbutilqt/base/systeminfo.cpp')
-rw-r--r--rbutil/rbutilqt/base/systeminfo.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/rbutil/rbutilqt/base/systeminfo.cpp b/rbutil/rbutilqt/base/systeminfo.cpp
index aa847540b9..6717b120cc 100644
--- a/rbutil/rbutilqt/base/systeminfo.cpp
+++ b/rbutil/rbutilqt/base/systeminfo.cpp
@@ -38,39 +38,6 @@ void SystemInfo::ensureSystemInfoExists()
}
-QStringList SystemInfo::platforms(enum SystemInfo::PlatformType type, QString variant)
-{
- ensureSystemInfoExists();
-
- QStringList result;
- systemInfos->beginGroup("platforms");
- QStringList a = systemInfos->childKeys();
- systemInfos->endGroup();
- for(int i = 0; i < a.size(); i++)
- {
- QString target = systemInfos->value("platforms/"+a.at(i), "null").toString();
- QRegExp regex("\\..*$");
- QString targetbase = target;
- targetbase.remove(regex);
- // only add target if its not disabled unless Platform*Disabled requested
- if(type != PlatformAllDisabled && type != PlatformBaseDisabled
- && type != PlatformVariantDisabled
- && systemInfos->value(target+"/status").toString() == "disabled")
- continue;
- // report only matching target if PlatformVariant* is requested
- if((type == PlatformVariant || type == PlatformVariantDisabled)
- && (targetbase != variant))
- continue;
- // report only base targets when PlatformBase* is requested
- if((type == PlatformBase || type == PlatformBaseDisabled))
- result.append(targetbase);
- else
- result.append(target);
- }
- result.removeDuplicates();
- return result;
-}
-
QMap<QString, QStringList> SystemInfo::languages(bool namesOnly)
{
ensureSystemInfoExists();