]> granicus.if.org Git - clang/commitdiff
Unused ObjcProtoMethod is removed.
authorFariborz Jahanian <fjahanian@apple.com>
Sun, 30 Sep 2007 18:53:32 +0000 (18:53 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Sun, 30 Sep 2007 18:53:32 +0000 (18:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42485 91177308-0d34-0410-b5e6-96231b3b80d8

AST/Decl.cpp
include/clang/AST/Decl.h

index 10da7b163eddda91afd3e2b601dcacddc18eb622..d9749ad73a5321a309791c0831a7ea5368f92b0e 100644 (file)
@@ -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:
index 7c22c4d5ac2b2995fe6d8a305f2300cb0e0d2521..a2538da7760eb2a074b47ec90f3a18121991348c 100644 (file)
@@ -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; }
 };