]> granicus.if.org Git - clang/commitdiff
Remove all non-const getters from TemplateArgumentList.
authorAnders Carlsson <andersca@mac.com>
Wed, 17 Jun 2009 00:35:01 +0000 (00:35 +0000)
committerAnders Carlsson <andersca@mac.com>
Wed, 17 Jun 2009 00:35:01 +0000 (00:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73589 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclTemplate.h

index 9d0913325f0d00c1b41fea1df2b95d0e42cdb4d2..af06965f84e955e024f120c03cd6fe7074b29ae5 100644 (file)
@@ -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();
   }