From 527d0afcb73e6af89d0a2ddd5044e4d0febc63d7 Mon Sep 17 00:00:00 2001 From: eiytoq Date: Mon, 12 Jan 2026 23:37:51 +0800 Subject: [PATCH] [libc++] Removed unused internal helper functions from the midpoint.h header (#175514) --- libcxx/include/__numeric/midpoint.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libcxx/include/__numeric/midpoint.h b/libcxx/include/__numeric/midpoint.h index 8b379f47c568..d8e73ab8cad3 100644 --- a/libcxx/include/__numeric/midpoint.h +++ b/libcxx/include/__numeric/midpoint.h @@ -52,11 +52,6 @@ template return __a + std::midpoint(ptrdiff_t(0), __b - __a); } -template -_LIBCPP_HIDE_FROM_ABI constexpr int __sign(_Tp __val) { - return (_Tp(0) < __val) - (__val < _Tp(0)); -} - template _LIBCPP_HIDE_FROM_ABI constexpr _Fp __fp_abs(_Fp __f) { return __f >= 0 ? __f : -__f;