[libcxx-commits] [libcxx] [libc++][NFC] Remove some unused functions from to_chars_integral.h (PR #223130)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Sat Sep 12 01:12:14 PDT 2026


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

None

>From d398901195de7f5070d78770b8170f50b00df649 Mon Sep 17 00:00:00 2001
From: Nikolas Klauser <nikolasklauser at berlin.de>
Date: Sat, 12 Sep 2026 10:11:53 +0200
Subject: [PATCH] [libc++][NFC] Remove some unused functions from
 to_chars_integral.h

---
 libcxx/include/__charconv/to_chars_integral.h | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/libcxx/include/__charconv/to_chars_integral.h b/libcxx/include/__charconv/to_chars_integral.h
index 6d425139260b6..a41bb0348782d 100644
--- a/libcxx/include/__charconv/to_chars_integral.h
+++ b/libcxx/include/__charconv/to_chars_integral.h
@@ -218,16 +218,6 @@ struct _LIBCPP_HIDDEN __integral<16> {
 
 } // namespace __itoa
 
-template <unsigned _Base, typename _Tp, __enable_if_t<(sizeof(_Tp) >= sizeof(unsigned)), int> = 0>
-_LIBCPP_CONSTEXPR_SINCE_CXX23 _LIBCPP_HIDE_FROM_ABI int __to_chars_integral_width(_Tp __value) {
-  return __itoa::__integral<_Base>::__width(__value);
-}
-
-template <unsigned _Base, typename _Tp, __enable_if_t<(sizeof(_Tp) < sizeof(unsigned)), int> = 0>
-_LIBCPP_CONSTEXPR_SINCE_CXX23 _LIBCPP_HIDE_FROM_ABI int __to_chars_integral_width(_Tp __value) {
-  return std::__to_chars_integral_width<_Base>(static_cast<unsigned>(__value));
-}
-
 template <unsigned _Base, typename _Tp, __enable_if_t<(sizeof(_Tp) >= sizeof(unsigned)), int> = 0>
 _LIBCPP_CONSTEXPR_SINCE_CXX23 _LIBCPP_HIDE_FROM_ABI __to_chars_result
 __to_chars_integral(char* __first, char* __last, _Tp __value) {



More information about the libcxx-commits mailing list