From 8c8703038be3f9bbb80742816045e18d3aa8c465 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Mon, 1 Mar 2010 22:45:17 +0000 Subject: Refactor device tree setup a bit. - reorder value retrieval (display names etc) to cut down the number of necessary accesses. While this is not critical it cuts down the noise generated in the trace noticably. - match the old target by its internal name instead of the display name. - remove two access functions in SystemInfo that are not really needed anymore. Accessing the values via platformValue() is much more logical and in line with the rest of the value accesses. - try to scroll to the selected item in the device list after setup and detection. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24988 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/base/systeminfo.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'rbutil/rbutilqt/base/systeminfo.cpp') diff --git a/rbutil/rbutilqt/base/systeminfo.cpp b/rbutil/rbutilqt/base/systeminfo.cpp index a941f43078..72a62ac2fb 100644 --- a/rbutil/rbutilqt/base/systeminfo.cpp +++ b/rbutil/rbutilqt/base/systeminfo.cpp @@ -156,18 +156,6 @@ QStringList SystemInfo::languages() } -QString SystemInfo::name(QString platform) -{ - ensureSystemInfoExists(); - return systemInfos->value(platform + "/name").toString(); -} - -QString SystemInfo::brand(QString platform) -{ - ensureSystemInfoExists(); - return systemInfos->value(platform + "/brand").toString(); -} - QMap SystemInfo::usbIdMap(enum MapType type) { ensureSystemInfoExists(); -- cgit v1.2.3