summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbsettings.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-03-14 23:34:40 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-03-14 23:34:40 +0000
commit3822126de8e9c66e247b712da16abd8566cbc969 (patch)
tree0a22b5411c68db39d710833e52725ac71d1dfa74 /rbutil/rbutilqt/rbsettings.cpp
parent58764183439c0a7611aca2fcf344496a1589babf (diff)
downloadrockbox-3822126de8e9c66e247b712da16abd8566cbc969.tar.gz
rockbox-3822126de8e9c66e247b712da16abd8566cbc969.tar.bz2
rockbox-3822126de8e9c66e247b712da16abd8566cbc969.zip
Use target string instead of target id when checking the target selection against an existing Rockbox installation. Removes the need to resolve id -> name.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20325 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/rbsettings.cpp')
-rw-r--r--rbutil/rbutilqt/rbsettings.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/rbutil/rbutilqt/rbsettings.cpp b/rbutil/rbutilqt/rbsettings.cpp
index b26f86b921..5f8664e7ea 100644
--- a/rbutil/rbutilqt/rbsettings.cpp
+++ b/rbutil/rbutilqt/rbsettings.cpp
@@ -388,30 +388,6 @@ QString RbSettings::brand(QString plattform)
return brand;
}
-QString RbSettings::nameOfTargetId(int id)
-{
- QString result ="";
- // get a list of ID -> target name
- QStringList platforms;
- devices->beginGroup("platforms");
- platforms = devices->childKeys();
- devices->endGroup();
- for(int i = 0; i < platforms.size(); i++)
- {
- devices->beginGroup("platforms");
- QString target = devices->value(platforms.at(i)).toString();
- devices->endGroup();
- devices->beginGroup(target);
- if(devices->value("targetid").toInt() == id)
- {
- result = devices->value("name").toString();
- }
- devices->endGroup();
- }
-
- return result;
-}
-
QMap<int, QString> RbSettings::usbIdMap()
{
QMap<int, QString> map;