]> granicus.if.org Git - clang/commitdiff
Remove the crufty reverse_decl_iterator
authorDouglas Gregor <dgregor@apple.com>
Wed, 17 Dec 2008 16:32:39 +0000 (16:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 17 Dec 2008 16:32:39 +0000 (16:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61139 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclBase.h

index 04d0ce530c3092aac32ab1acd03d0f03f5b09602..358067661629d8e60efb9858d98a74949c561a86 100644 (file)
@@ -419,21 +419,11 @@ public:
   /// within this context.
   typedef std::vector<ScopedDecl*>::const_iterator decl_iterator;
 
-  /// reverse_decl_iterator - Iterates through the declarations stored
-  /// within this context in reverse order.
-  typedef std::vector<ScopedDecl*>::const_reverse_iterator 
-    reverse_decl_iterator;
-
   /// decls_begin/decls_end - Iterate over the declarations stored in
   /// this context. 
   decl_iterator decls_begin() const { return Decls.begin(); }
   decl_iterator decls_end()   const { return Decls.end(); }
 
-  /// decls_rbegin/decls_rend - Iterate over the declarations stored
-  /// in this context in reverse order.
-  reverse_decl_iterator decls_rbegin() const { return Decls.rbegin(); }
-  reverse_decl_iterator decls_rend() const { return Decls.rend(); }
-
   /// addDecl - Add the declaration D to this scope. Note that
   /// declarations are added at the beginning of the declaration
   /// chain, so reverseDeclChain() should be called after all