From: Alp Toker Date: Sat, 25 Jan 2014 17:32:04 +0000 (+0000) Subject: Remove obsolete ObjCMethodDecl arg_type iterator functions X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf7aedae02a19b33c04542dec64c061c30526740;p=clang Remove obsolete ObjCMethodDecl arg_type iterator functions These were set into deprecation in r199773. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200086 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 57ed6f7593..3947e35cbc 100644 --- a/include/clang/AST/DeclObjC.h +++ b/include/clang/AST/DeclObjC.h @@ -372,19 +372,11 @@ public: typedef llvm::mapped_iterator param_type_iterator; - param_type_iterator arg_type_begin() const { - return llvm::map_iterator(param_begin(), deref_fun(&ParmVarDecl::getType)); - } - param_type_iterator arg_type_end() const { - return llvm::map_iterator(param_end(), deref_fun(&ParmVarDecl::getType)); - } - - // FunctionProtoType adapters. param_type_iterator param_type_begin() const { - return arg_type_begin(); + return llvm::map_iterator(param_begin(), deref_fun(&ParmVarDecl::getType)); } param_type_iterator param_type_end() const { - return arg_type_end(); + return llvm::map_iterator(param_end(), deref_fun(&ParmVarDecl::getType)); } /// createImplicitParams - Used to lazily create the self and cmd diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index ed8a0bb748..ce0845681a 100644 --- a/lib/AST/DeclObjC.cpp +++ b/lib/AST/DeclObjC.cpp @@ -860,7 +860,7 @@ ObjCMethodFamily ObjCMethodDecl::getMethodFamily() const { if (noParams < 1 || noParams > 3) family = OMF_None; else { - ObjCMethodDecl::param_type_iterator it = arg_type_begin(); + ObjCMethodDecl::param_type_iterator it = param_type_begin(); QualType ArgT = (*it); if (!ArgT->isObjCSelType()) { family = OMF_None;