diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-08-05 17:14:08 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-08-05 17:14:08 +0200 |
commit | ca34b0ca1c57a0ec0f8f61ad1b0dd4f8bfc9b554 (patch) | |
tree | f6a3f16210a3d6a2ccfed259be90af8c218ce623 /src/shared/cplusplus/Symbols.cpp | |
parent | afd9fd824d6d61e5d6698b09bd2fe304977ccad4 (diff) | |
download | qt-creator-ca34b0ca1c57a0ec0f8f61ad1b0dd4f8bfc9b554.tar.gz |
Cleaned the ObjC AST up.
Diffstat (limited to 'src/shared/cplusplus/Symbols.cpp')
-rw-r--r-- | src/shared/cplusplus/Symbols.cpp | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/src/shared/cplusplus/Symbols.cpp b/src/shared/cplusplus/Symbols.cpp index 4946bb75f1..861c1cd358 100644 --- a/src/shared/cplusplus/Symbols.cpp +++ b/src/shared/cplusplus/Symbols.cpp @@ -636,27 +636,11 @@ ObjCForwardClassDeclaration::~ObjCForwardClassDeclaration() {} FullySpecifiedType ObjCForwardClassDeclaration::type() const -{ return FullySpecifiedType(const_cast<ObjCForwardClassDeclaration *>(this)); } - -bool ObjCForwardClassDeclaration::isEqualTo(const Type *other) const -{ - if (const ObjCForwardClassDeclaration *otherForward = other->asObjCForwardClassDeclarationType()) { - if (name() == otherForward->name()) - return true; - else if (name() && otherForward->name()) - return name()->isEqualTo(otherForward->name()); - - return false; - } - return false; -} +{ return FullySpecifiedType(); } void ObjCForwardClassDeclaration::visitSymbol0(SymbolVisitor *visitor) { visitor->visit(this); } -void ObjCForwardClassDeclaration::accept0(TypeVisitor *visitor) -{ visitor->visit(this); } - ObjCForwardProtocolDeclaration::ObjCForwardProtocolDeclaration(TranslationUnit *translationUnit, unsigned sourceLocation, Name *name): Symbol(translationUnit, sourceLocation, name) { @@ -666,25 +650,9 @@ ObjCForwardProtocolDeclaration::~ObjCForwardProtocolDeclaration() {} FullySpecifiedType ObjCForwardProtocolDeclaration::type() const -{ return FullySpecifiedType(const_cast<ObjCForwardProtocolDeclaration *>(this)); } - -bool ObjCForwardProtocolDeclaration::isEqualTo(const Type *other) const -{ - if (const ObjCForwardProtocolDeclaration *otherForward = other->asObjCForwardProtocolDeclarationType()) { - if (name() == otherForward->name()) - return true; - else if (name() && otherForward->name()) - return name()->isEqualTo(otherForward->name()); - - return false; - } - return false; -} +{ return FullySpecifiedType(); } void ObjCForwardProtocolDeclaration::visitSymbol0(SymbolVisitor *visitor) { visitor->visit(this); } -void ObjCForwardProtocolDeclaration::accept0(TypeVisitor *visitor) -{ visitor->visit(this); } - CPLUSPLUS_END_NAMESPACE |