From be0889030e28230268b309ec01fec712f72b507d Mon Sep 17 00:00:00 2001 From: halbi2 Date: Tue, 13 Jan 2026 04:37:24 -0500 Subject: [PATCH] [libc++][NFC] Remove unused __key_equiv from flat_multimap and flat_multiset (#175612) --- libcxx/include/__flat_map/flat_multimap.h | 9 --------- libcxx/include/__flat_set/flat_multiset.h | 9 --------- 2 files changed, 18 deletions(-) diff --git a/libcxx/include/__flat_map/flat_multimap.h b/libcxx/include/__flat_map/flat_multimap.h index 72e3b5f21670..bd3ec81b98b7 100644 --- a/libcxx/include/__flat_map/flat_multimap.h +++ b/libcxx/include/__flat_map/flat_multimap.h @@ -934,15 +934,6 @@ private: containers __containers_; _LIBCPP_NO_UNIQUE_ADDRESS key_compare __compare_; - - struct __key_equiv { - _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __key_equiv(key_compare __c) : __comp_(__c) {} - _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool - operator()(const_reference __x, const_reference __y) const { - return !__comp_(std::get<0>(__x), std::get<0>(__y)) && !__comp_(std::get<0>(__y), std::get<0>(__x)); - } - key_compare __comp_; - }; }; template > diff --git a/libcxx/include/__flat_set/flat_multiset.h b/libcxx/include/__flat_set/flat_multiset.h index b2de63bc3038..4324645fb844 100644 --- a/libcxx/include/__flat_set/flat_multiset.h +++ b/libcxx/include/__flat_set/flat_multiset.h @@ -745,15 +745,6 @@ private: _KeyContainer __keys_; _LIBCPP_NO_UNIQUE_ADDRESS key_compare __compare_; - - struct __key_equiv { - _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __key_equiv(key_compare __c) : __comp_(__c) {} - _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool - operator()(const_reference __x, const_reference __y) const { - return !__comp_(std::get<0>(__x), std::get<0>(__y)) && !__comp_(std::get<0>(__y), std::get<0>(__x)); - } - key_compare __comp_; - }; }; template >