summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-26 22:41:51 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-26 22:41:51 +0100
commit3ee6ce956fe714899322c6226008bd190441c76a (patch)
treede7d60c03c126461460ce38a2d4e50e62486bd2b /rbutil/rbutilqt/base
parent185dfb42c278a23d269ef3e358edd24c1486deaa (diff)
downloadrockbox-3ee6ce956f.tar.gz
rockbox-3ee6ce956f.tar.bz2
rockbox-3ee6ce956f.zip
rbutil: Remove duplicated enum entry.
SystemInfo::PlatformName and Name actually retrieve the same value. That's not usefule, so remove one of both. Change-Id: I8ee429f099588e0e1e8129302542cd0f6f836203
Diffstat (limited to 'rbutil/rbutilqt/base')
-rw-r--r--rbutil/rbutilqt/base/systeminfo.cpp1
-rw-r--r--rbutil/rbutilqt/base/systeminfo.h1
-rw-r--r--rbutil/rbutilqt/base/utils.cpp4
3 files changed, 2 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/base/systeminfo.cpp b/rbutil/rbutilqt/base/systeminfo.cpp
index b0837438cb..b9a7602a5b 100644
--- a/rbutil/rbutilqt/base/systeminfo.cpp
+++ b/rbutil/rbutilqt/base/systeminfo.cpp
@@ -51,7 +51,6 @@ const static struct {
const char* name;
const char* def;
} PlatformInfosList[] = {
- { SystemInfo::PlatformName, ":platform:/name", "" },
{ SystemInfo::Manual, ":platform:/manualname", ":platform:" },
{ SystemInfo::BootloaderMethod, ":platform:/bootloadermethod", "none" },
{ SystemInfo::BootloaderName, ":platform:/bootloadername", "" },
diff --git a/rbutil/rbutilqt/base/systeminfo.h b/rbutil/rbutilqt/base/systeminfo.h
index 9bcfe6d253..1aef791975 100644
--- a/rbutil/rbutilqt/base/systeminfo.h
+++ b/rbutil/rbutilqt/base/systeminfo.h
@@ -64,7 +64,6 @@ class SystemInfo : public QObject
};
enum PlatformInfo {
- PlatformName,
Manual,
BootloaderMethod,
BootloaderName,
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp
index 60b55068e1..83c189b8a2 100644
--- a/rbutil/rbutilqt/base/utils.cpp
+++ b/rbutil/rbutilqt/base/utils.cpp
@@ -385,8 +385,8 @@ QString Utils::checkEnvironment(bool permission)
{
text += tr("<li>Target mismatch detected.<br/>"
"Installed target: %1<br/>Selected target: %2.</li>")
- .arg(SystemInfo::platformValue(SystemInfo::PlatformName, installed).toString(),
- SystemInfo::platformValue(SystemInfo::PlatformName).toString());
+ .arg(SystemInfo::platformValue(SystemInfo::Name, installed).toString(),
+ SystemInfo::platformValue(SystemInfo::Name).toString());
}
if(!text.isEmpty())