From: Jonathan Wakely Date: Mon, 29 Apr 2019 12:12:46 +0000 (+0100) Subject: Remove unused std::_Iter_base class template X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82b6276fb3da3922e1bc875d75f81d6a31ae32d8;p=gcc.git Remove unused std::_Iter_base class template 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f9e5ee44679..5112bc8c60f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2019-04-29 Jonathan Wakely + * 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. diff --git a/libstdc++-v3/include/bits/stl_iterator_base_types.h b/libstdc++-v3/include/bits/stl_iterator_base_types.h index 4920b61a840..af69dbb017a 100644 --- a/libstdc++-v3/include/bits/stl_iterator_base_types.h +++ b/libstdc++-v3/include/bits/stl_iterator_base_types.h @@ -207,26 +207,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION //@} -#if __cplusplus < 201103L - // If _Iterator has a base returns it otherwise _Iterator is returned - // untouched - template - struct _Iter_base - { - typedef _Iterator iterator_type; - static iterator_type _S_base(_Iterator __it) - { return __it; } - }; - - template - 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 using _RequireInputIter = typename