From ca34b0ca1c57a0ec0f8f61ad1b0dd4f8bfc9b554 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Wed, 5 Aug 2009 17:14:08 +0200 Subject: Cleaned the ObjC AST up. --- src/shared/cplusplus/Symbols.cpp | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) (limited to 'src/shared/cplusplus/Symbols.cpp') 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(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(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 -- cgit v1.2.1