diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2007-09-30 18:53:32 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2007-09-30 18:53:32 +0000 |
commit | a725bf778293d1c1692fc467149f334c4128467e (patch) | |
tree | 31ddfa68d4208042f7723c20879627373644288d | |
parent | 9150652b21ac0b4fe9dc836c1fb14026a217da13 (diff) | |
download | bcm5719-llvm-a725bf778293d1c1692fc467149f334c4128467e.tar.gz bcm5719-llvm-a725bf778293d1c1692fc467149f334c4128467e.zip |
Unused ObjcProtoMethod is removed.
llvm-svn: 42485
-rw-r--r-- | clang/AST/Decl.cpp | 3 | ||||
-rw-r--r-- | clang/include/clang/AST/Decl.h | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/clang/AST/Decl.cpp b/clang/AST/Decl.cpp index 10da7b163ed..d9749ad73a5 100644 --- a/clang/AST/Decl.cpp +++ b/clang/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/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 7c22c4d5ac2..a2538da7760 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/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; } }; |