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 <eike.ziller@theqtcompany.com>
This commit is contained in:
hjk
2015-06-19 12:41:48 +02:00
parent e9af824fe0
commit cbe27c5c44
2 changed files with 0 additions and 17 deletions

View File

@@ -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;

View File

@@ -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