[libcxx-commits] [libcxx] 527d0af - [libc++] Removed unused internal helper functions from the midpoint.h header (#175514)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 12 07:37:55 PST 2026


Author: eiytoq
Date: 2026-01-12T17:37:51+02:00
New Revision: 527d0afcb73e6af89d0a2ddd5044e4d0febc63d7

URL: https://github.com/llvm/llvm-project/commit/527d0afcb73e6af89d0a2ddd5044e4d0febc63d7
DIFF: https://github.com/llvm/llvm-project/commit/527d0afcb73e6af89d0a2ddd5044e4d0febc63d7.diff

LOG: [libc++] Removed unused internal helper functions from the midpoint.h header (#175514)

Added: 
    

Modified: 
    libcxx/include/__numeric/midpoint.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__numeric/midpoint.h b/libcxx/include/__numeric/midpoint.h
index 8b379f47c5684..d8e73ab8cad36 100644
--- a/libcxx/include/__numeric/midpoint.h
+++ b/libcxx/include/__numeric/midpoint.h
@@ -52,11 +52,6 @@ template <class _Tp>
   return __a + std::midpoint(ptr
diff _t(0), __b - __a);
 }
 
-template <typename _Tp>
-_LIBCPP_HIDE_FROM_ABI constexpr int __sign(_Tp __val) {
-  return (_Tp(0) < __val) - (__val < _Tp(0));
-}
-
 template <typename _Fp>
 _LIBCPP_HIDE_FROM_ABI constexpr _Fp __fp_abs(_Fp __f) {
   return __f >= 0 ? __f : -__f;


        


More information about the libcxx-commits mailing list