[libcxx-commits] [libcxx] [libc++][NFC] Remove unused struct in <string> (PR #106527)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Aug 29 08:05:37 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Nikolas Klauser (philnik777)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/106527.diff
1 Files Affected:
- (modified) libcxx/include/string (-8)
``````````diff
diff --git a/libcxx/include/string b/libcxx/include/string
index 05d42afb7c9c3d..45be4050304125 100644
--- a/libcxx/include/string
+++ b/libcxx/include/string
@@ -3462,14 +3462,6 @@ inline _LIBCPP_CONSTEXPR_SINCE_CXX20 void basic_string<_CharT, _Traits, _Allocat
// find
-template <class _Traits>
-struct _LIBCPP_HIDDEN __traits_eq {
- typedef typename _Traits::char_type char_type;
- _LIBCPP_HIDE_FROM_ABI bool operator()(const char_type& __x, const char_type& __y) _NOEXCEPT {
- return _Traits::eq(__x, __y);
- }
-};
-
template <class _CharT, class _Traits, class _Allocator>
_LIBCPP_CONSTEXPR_SINCE_CXX20 typename basic_string<_CharT, _Traits, _Allocator>::size_type
basic_string<_CharT, _Traits, _Allocator>::find(const value_type* __s, size_type __pos, size_type __n) const _NOEXCEPT {
``````````
</details>
https://github.com/llvm/llvm-project/pull/106527
More information about the libcxx-commits
mailing list