[libc++][NFC] Remove unused __key_equiv from flat_multimap and flat_multiset (#175612)
This commit is contained in:
@@ -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 <class _KeyContainer, class _MappedContainer, class _Compare = less<typename _KeyContainer::value_type>>
|
||||
|
||||
@@ -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 <class _KeyContainer, class _Compare = less<typename _KeyContainer::value_type>>
|
||||
|
||||
Reference in New Issue
Block a user