forked from qt-creator/qt-creator
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:
@@ -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
|
bool Id::operator==(const char *name) const
|
||||||
{
|
{
|
||||||
const char *string = stringFromId.value(m_id).str;
|
const char *string = stringFromId.value(m_id).str;
|
||||||
|
@@ -74,7 +74,6 @@ public:
|
|||||||
static Id fromString(const QString &str); // FIXME: avoid.
|
static Id fromString(const QString &str); // FIXME: avoid.
|
||||||
static Id fromName(const QByteArray &ba); // FIXME: avoid.
|
static Id fromName(const QByteArray &ba); // FIXME: avoid.
|
||||||
static Id fromSetting(const QVariant &variant); // Good to use.
|
static Id fromSetting(const QVariant &variant); // Good to use.
|
||||||
static void registerId(int uid, const char *name);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Intentionally unimplemented
|
// Intentionally unimplemented
|
||||||
|
Reference in New Issue
Block a user