aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2007-09-30 18:53:32 +0000
committerFariborz Jahanian <fjahanian@apple.com>2007-09-30 18:53:32 +0000
commitd664ff7beb054a2f2f56ec438ff3ce65be96eddc (patch)
tree87a304920a69b3561b59c2dfaa4d01b18d2feb9e
parent1f945f632ae993bbb9f9e69d908f7526924c1a88 (diff)
Unused ObjcProtoMethod is removed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42485 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--AST/Decl.cpp3
-rw-r--r--include/clang/AST/Decl.h5
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; }
};