libstdc++: Remove unused std::pair helper function
authorJonathan Wakely <jwakely@redhat.com>
Tue, 18 Jan 2022 21:21:47 +0000 (21:21 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 19 Jan 2022 00:58:25 +0000 (00:58 +0000)
This function is no longer used since r12-6691 and can be removed.

libstdc++-v3/ChangeLog:

* include/bits/stl_pair.h (_PCC::_DeprConsPair): Remove unused
function.

libstdc++-v3/include/bits/stl_pair.h

index 8564fd1..0eb7834 100644 (file)
@@ -128,20 +128,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        return __and_<is_convertible<_U1&&, _T1>,
                      is_convertible<_U2&&, _T2>>::value;
       }
-
-      template <bool __implicit, typename _U1, typename _U2>
-      static constexpr bool _DeprConsPair()
-      {
-       using __do_converts = __and_<is_convertible<_U1&&, _T1>,
-                                    is_convertible<_U2&&, _T2>>;
-       using __converts = __conditional_t<__implicit,
-                                          __do_converts,
-                                          __not_<__do_converts>>;
-       return __and_<is_constructible<_T1, _U1&&>,
-                     is_constructible<_T2, _U2&&>,
-                     __converts
-                    >::value;
-      }
     };
 
   template <typename _T1, typename _T2>