From acbc4b9f07ee8278ee88857c5be224d15e070ffc Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Thu, 15 May 2014 12:00:13 -0400 Subject: 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 --- src/libs/3rdparty/cplusplus/CoreTypes.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/libs/3rdparty/cplusplus/CoreTypes.h') diff --git a/src/libs/3rdparty/cplusplus/CoreTypes.h b/src/libs/3rdparty/cplusplus/CoreTypes.h index d957767178..04eee89498 100644 --- a/src/libs/3rdparty/cplusplus/CoreTypes.h +++ b/src/libs/3rdparty/cplusplus/CoreTypes.h @@ -42,8 +42,6 @@ public: virtual UndefinedType *asUndefinedType() { return this; } - virtual bool isEqualTo(const Type *other) const; - protected: virtual void accept0(TypeVisitor *visitor); virtual bool match0(const Type *otherType, Matcher *matcher) const; @@ -52,8 +50,6 @@ protected: class CPLUSPLUS_EXPORT VoidType: public Type { public: - virtual bool isEqualTo(const Type *other) const; - virtual const VoidType *asVoidType() const { return this; } @@ -86,8 +82,6 @@ public: int kind() const; - virtual bool isEqualTo(const Type *other) const; - virtual IntegerType *asIntegerType() { return this; } @@ -117,8 +111,6 @@ public: int kind() const; - virtual bool isEqualTo(const Type *other) const; - virtual const FloatType *asFloatType() const { return this; } @@ -141,8 +133,6 @@ public: FullySpecifiedType elementType() const; - virtual bool isEqualTo(const Type *other) const; - virtual const PointerType *asPointerType() const { return this; } @@ -166,8 +156,6 @@ public: const Name *memberName() const; FullySpecifiedType elementType() const; - virtual bool isEqualTo(const Type *other) const; - virtual const PointerToMemberType *asPointerToMemberType() const { return this; } @@ -192,8 +180,6 @@ public: FullySpecifiedType elementType() const; bool isRvalueReference() const; - virtual bool isEqualTo(const Type *other) const; - virtual const ReferenceType *asReferenceType() const { return this; } @@ -218,8 +204,6 @@ public: FullySpecifiedType elementType() const; unsigned size() const; - virtual bool isEqualTo(const Type *other) const; - virtual const ArrayType *asArrayType() const { return this; } @@ -243,8 +227,6 @@ public: const Name *name() const; - virtual bool isEqualTo(const Type *other) const; - virtual const NamedType *asNamedType() const { return this; } -- cgit v1.2.3