]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove unused std::_Iter_base class template
authorJonathan Wakely <jwakely@redhat.com>
Mon, 29 Apr 2019 12:12:46 +0000 (13:12 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 29 Apr 2019 12:12:46 +0000 (13:12 +0100)
This class template has been unused since __gnu_debug::__base was
removed in r263786.

* include/bits/stl_iterator_base_types.h (_Iter_base): Remove unused
class template and partial specialization.

From-SVN: r270647

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_iterator_base_types.h

index f9e5ee4467960e2e9305f7964c0b55185651abc8..5112bc8c60f1b49ed1af91f9fdeb5d700d10a609 100644 (file)
@@ -1,5 +1,8 @@
 2019-04-29  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/bits/stl_iterator_base_types.h (_Iter_base): Remove unused
+       class template and partial specialization.
+
        PR libstdc++/87982
        * include/bits/stl_algo.h (generate_n): Convert _Size parameter to
        an integral type.
index 4920b61a840df45ad3b0f3e414163641057e1c94..af69dbb017a9c6e7bd339908f0274f9626d97812 100644 (file)
@@ -207,26 +207,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
   //@}
 
-#if __cplusplus < 201103L
-  // If _Iterator has a base returns it otherwise _Iterator is returned
-  // untouched
-  template<typename _Iterator, bool _HasBase>
-    struct _Iter_base
-    {
-      typedef _Iterator iterator_type;
-      static iterator_type _S_base(_Iterator __it)
-      { return __it; }
-    };
-
-  template<typename _Iterator>
-    struct _Iter_base<_Iterator, true>
-    {
-      typedef typename _Iterator::iterator_type iterator_type;
-      static iterator_type _S_base(_Iterator __it)
-      { return __it.base(); }
-    };
-#endif
-
 #if __cplusplus >= 201103L
   template<typename _InIter>
     using _RequireInputIter = typename