From: Anders Carlsson Date: Wed, 17 Jun 2009 00:35:01 +0000 (+0000) Subject: Remove all non-const getters from TemplateArgumentList. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f10d48b7da44da324247ddbf54e2ddda8e22dd3;p=clang Remove all non-const getters from TemplateArgumentList. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73589 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclTemplate.h b/include/clang/AST/DeclTemplate.h index 9d0913325f..af06965f84 100644 --- a/include/clang/AST/DeclTemplate.h +++ b/include/clang/AST/DeclTemplate.h @@ -696,13 +696,6 @@ public: } /// \brief Retrieve the template argument at a given index. - TemplateArgument &get(unsigned Idx) { - assert(Idx < NumArguments && "Invalid template argument index"); - return getFlatArgumentList()[Idx]; - } - - /// \brief Retrieve the template argument at a given index. - TemplateArgument &operator[](unsigned Idx) { return get(Idx); } const TemplateArgument &operator[](unsigned Idx) const { return get(Idx); } /// \brief Retrieve the number of template arguments in this @@ -714,9 +707,6 @@ public: unsigned flat_size() const { return NumArguments; } /// \brief Retrieve the flattened template argument list. - TemplateArgument *getFlatArgumentList() { - return Arguments.getPointer(); - } const TemplateArgument *getFlatArgumentList() const { return Arguments.getPointer(); }