[libcxx-commits] [libcxx] [libc++][NFC] Remove unused typedefs in filesystem::path helpers (PR #70331)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 26 06:45:57 PDT 2023
https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/70331
I came across those typedefs while working on another change, and I noticed they were just never used.
>From 84a4402cf85afeed97f117bc663cc186689f29ec Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Thu, 26 Oct 2023 09:44:44 -0400
Subject: [PATCH] [libc++][NFC] Remove unused typedefs in filesystem::path
helpers
I came across those typedefs while working on another change, and I
noticed they were just never used.
---
libcxx/include/__filesystem/path.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/libcxx/include/__filesystem/path.h b/libcxx/include/__filesystem/path.h
index c104b003573dc1b..8a9350be2a00f77 100644
--- a/libcxx/include/__filesystem/path.h
+++ b/libcxx/include/__filesystem/path.h
@@ -107,7 +107,6 @@ struct __is_pathable_string<
_Void<typename __can_convert_char<_ECharT>::__char_type> >
: public __can_convert_char<_ECharT> {
using _Str = basic_string<_ECharT, _Traits, _Alloc>;
- using _Base = __can_convert_char<_ECharT>;
_LIBCPP_HIDE_FROM_ABI
static _ECharT const* __range_begin(_Str const& __s) { return __s.data(); }
@@ -129,7 +128,6 @@ struct __is_pathable_string<
_Void<typename __can_convert_char<_ECharT>::__char_type> >
: public __can_convert_char<_ECharT> {
using _Str = basic_string_view<_ECharT, _Traits>;
- using _Base = __can_convert_char<_ECharT>;
_LIBCPP_HIDE_FROM_ABI
static _ECharT const* __range_begin(_Str const& __s) { return __s.data(); }
@@ -155,8 +153,6 @@ struct __is_pathable_char_array : false_type {};
template <class _Source, class _ECharT, class _UPtr>
struct __is_pathable_char_array<_Source, _ECharT*, _UPtr, true>
: __can_convert_char<__remove_const_t<_ECharT> > {
- using _Base = __can_convert_char<__remove_const_t<_ECharT> >;
-
_LIBCPP_HIDE_FROM_ABI
static _ECharT const* __range_begin(const _ECharT* __b) { return __b; }
@@ -185,7 +181,6 @@ struct __is_pathable_iter<
typename iterator_traits<_Iter>::value_type>::__char_type> >
: __can_convert_char<typename iterator_traits<_Iter>::value_type> {
using _ECharT = typename iterator_traits<_Iter>::value_type;
- using _Base = __can_convert_char<_ECharT>;
_LIBCPP_HIDE_FROM_ABI
static _Iter __range_begin(_Iter __b) { return __b; }
More information about the libcxx-commits
mailing list