[cfe-commits] r42485 - in /cfe/trunk: AST/Decl.cpp include/clang/AST/Decl.h
Fariborz Jahanian
fjahanian at apple.com
Sun Sep 30 11:53:32 PDT 2007
Author: fjahanian
Date: Sun Sep 30 13:53:32 2007
New Revision: 42485
URL: http://llvm.org/viewvc/llvm-project?rev=42485&view=rev
Log:
Unused ObjcProtoMethod is removed.
Modified:
cfe/trunk/AST/Decl.cpp
cfe/trunk/include/clang/AST/Decl.h
Modified: cfe/trunk/AST/Decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/Decl.cpp?rev=42485&r1=42484&r2=42485&view=diff
==============================================================================
--- cfe/trunk/AST/Decl.cpp (original)
+++ cfe/trunk/AST/Decl.cpp Sun Sep 30 13:53:32 2007
@@ -57,8 +57,6 @@
return "ObjcClass";
case ObjcMethod:
return "ObjcMethod";
- case ObjcProtoMethod:
- return "ObjcProtoMethod";
case ObjcProtocol:
return "ObjcProtocol";
case ObjcForwardProtocol:
@@ -183,7 +181,6 @@
nClassDecls++;
break;
case ObjcMethod:
- case ObjcProtoMethod:
nMethodDecls++;
break;
case ObjcProtocol:
Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=42485&r1=42484&r2=42485&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Sun Sep 30 13:53:32 2007
@@ -39,7 +39,7 @@
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 @@
// 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; }
};
More information about the cfe-commits
mailing list