From cbe27c5c4430b48c0db2b3ed44f56535d687453e Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 19 Jun 2015 12:41:48 +0200 Subject: [PATCH] Core: Remove unused Id::registerId This was intended to avoid the char * -> int mapping at all, but was never actively used. Change-Id: Ief119cc2ff2c8b4ed404c9eb534e17265a3562e6 Reviewed-by: Eike Ziller --- src/plugins/coreplugin/id.cpp | 16 ---------------- src/plugins/coreplugin/id.h | 1 - 2 files changed, 17 deletions(-) diff --git a/src/plugins/coreplugin/id.cpp b/src/plugins/coreplugin/id.cpp index 320aae704f4..d41d2086cb6 100644 --- a/src/plugins/coreplugin/id.cpp +++ b/src/plugins/coreplugin/id.cpp @@ -296,22 +296,6 @@ Id Id::withPrefix(const char *prefix) const } -/*! - Associates a id with its uid and its string - representation. - - The uid should be taken from the plugin's private range. - - \sa fromSetting() -*/ - -void Id::registerId(int uid, const char *name) -{ - StringHolder sh(name, 0); - idFromString[sh] = uid; - stringFromId[uid] = sh; -} - bool Id::operator==(const char *name) const { const char *string = stringFromId.value(m_id).str; diff --git a/src/plugins/coreplugin/id.h b/src/plugins/coreplugin/id.h index 32fbe94f055..e48ae51d32e 100644 --- a/src/plugins/coreplugin/id.h +++ b/src/plugins/coreplugin/id.h @@ -74,7 +74,6 @@ public: static Id fromString(const QString &str); // FIXME: avoid. static Id fromName(const QByteArray &ba); // FIXME: avoid. static Id fromSetting(const QVariant &variant); // Good to use. - static void registerId(int uid, const char *name); private: // Intentionally unimplemented