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

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 29 08:05:09 PDT 2024


Author: Nikolas Klauser
Date: 2024-08-29T17:05:02+02:00
New Revision: 025f03f01e8584140b7ac27422cea0c0ef7ef6c1

URL: https://github.com/llvm/llvm-project/commit/025f03f01e8584140b7ac27422cea0c0ef7ef6c1
DIFF: https://github.com/llvm/llvm-project/commit/025f03f01e8584140b7ac27422cea0c0ef7ef6c1.diff

LOG: [libc++][NFC] Remove unused struct in <string> (#106527)

Added: 
    

Modified: 
    libcxx/include/string

Removed: 
    


################################################################################
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