libstdc++: Remove deprecated comparison operators for RB trees
authorJonathan Wakely <jwakely@redhat.com>
Wed, 19 Aug 2020 16:04:49 +0000 (17:04 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 19 Aug 2020 16:04:49 +0000 (17:04 +0100)
These functions were deprecated in GCC 9.1.0 because they are never used
by the library. This patch removes them for GCC 11.

libstdc++-v3/ChangeLog:

* include/bits/stl_tree.h (operator!=, operator>, operator<=)
(operator>=): Remove deprecated functions.

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

index 21b72cebf2e078ae893c61917ff1094b81bfeefd..c50391d68c3a047ab00d53e89fbb6973f9a7e810 100644 (file)
@@ -1632,22 +1632,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        return std::lexicographical_compare(__x.begin(), __x.end(),
                                            __y.begin(), __y.end());
       }
-
-      friend bool _GLIBCXX_DEPRECATED
-      operator!=(const _Rb_tree& __x, const _Rb_tree& __y)
-      { return !(__x == __y); }
-
-      friend bool _GLIBCXX_DEPRECATED
-      operator>(const _Rb_tree& __x, const _Rb_tree& __y)
-      { return __y < __x; }
-
-      friend bool _GLIBCXX_DEPRECATED
-      operator<=(const _Rb_tree& __x, const _Rb_tree& __y)
-      { return !(__y < __x); }
-
-      friend bool _GLIBCXX_DEPRECATED
-      operator>=(const _Rb_tree& __x, const _Rb_tree& __y)
-      { return !(__x < __y); }
 #endif
     };