Commit cbe27c5c authored by hjk's avatar hjk

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: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent e9af824f
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment