forked from qt-creator/qt-creator
C++: Get rid of {Name,Type}::isEqualTo()
...since it's superseded by the class Matcher. For consistency, rename FullySpecifiedType::isEqualTo() to match(). Change-Id: I07640f9218d814e0350265de45f05929e5d595a9 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
12
src/libs/3rdparty/cplusplus/Literals.cpp
vendored
12
src/libs/3rdparty/cplusplus/Literals.cpp
vendored
@@ -207,15 +207,3 @@ bool Identifier::match0(const Name *otherName, Matcher *matcher) const
|
||||
return matcher->match(this, id);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Identifier::isEqualTo(const Name *other) const
|
||||
{
|
||||
if (this == other)
|
||||
return true;
|
||||
|
||||
else if (other) {
|
||||
if (const Identifier *nameId = other->asNameId())
|
||||
return equalTo(nameId);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user