From d664ff7beb054a2f2f56ec438ff3ce65be96eddc Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Sun, 30 Sep 2007 18:53:32 +0000 Subject: [PATCH] Unused ObjcProtoMethod is removed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42485 91177308-0d34-0410-b5e6-96231b3b80d8 --- AST/Decl.cpp | 3 --- include/clang/AST/Decl.h | 5 ++--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/AST/Decl.cpp b/AST/Decl.cpp index 10da7b163e..d9749ad73a 100644 --- a/AST/Decl.cpp +++ b/AST/Decl.cpp @@ -57,8 +57,6 @@ const char *Decl::getDeclKindName() const { return "ObjcClass"; case ObjcMethod: return "ObjcMethod"; - case ObjcProtoMethod: - return "ObjcProtoMethod"; case ObjcProtocol: return "ObjcProtocol"; case ObjcForwardProtocol: @@ -183,7 +181,6 @@ void Decl::addDeclKind(const Kind k) { nClassDecls++; break; case ObjcMethod: - case ObjcProtoMethod: nMethodDecls++; break; case ObjcProtocol: diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 7c22c4d5ac..a2538da776 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -39,7 +39,7 @@ public: Function, BlockVariable, FileVariable, ParmVariable, EnumConstant, // Concrete sub-classes of TypeDecl Typedef, Struct, Union, Class, Enum, ObjcInterface, ObjcClass, ObjcMethod, - ObjcProtoMethod, ObjcProtocol, ObjcForwardProtocol, ObjcCategory, + ObjcProtocol, ObjcForwardProtocol, ObjcCategory, ObjcImplementation, // Concrete sub-class of Decl Field, ObjcIvar @@ -747,8 +747,7 @@ public: // Implement isa/cast/dyncast/etc. static bool classof(const Decl *D) { - return D->getKind() == ObjcMethod - || D->getKind() == ObjcProtoMethod; + return D->getKind() == ObjcMethod; } static bool classof(const ObjcMethodDecl *D) { return true; } }; -- 2.40.0