[libcxx-commits] [libcxx] [libc++][NFC] Remove unused struct in <string> (PR #106527)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 29 04:00:44 PDT 2024


https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/106527

None

>From e8285310a64036b57097a9686fa98f5f8d734ea4 Mon Sep 17 00:00:00 2001
From: Nikolas Klauser <nikolasklauser at berlin.de>
Date: Thu, 29 Aug 2024 13:00:19 +0200
Subject: [PATCH] [libc++][NFC] Remove unused struct in <string>

---
 libcxx/include/string | 8 --------
 1 file changed, 8 deletions(-)

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 {



More information about the libcxx-commits mailing list