[libc++] Remove unused headers from <cmath> (#213114)

I believe these headers were relevant when we actually implemented
functions in `<cmath>`, but they are not anymore. Note that ::hypot in
particular is obtained from <math.h> like all the other math functions.

Co-authored-by: A. Jiang <de34@live.cn>
This commit is contained in:
Louis Dionne 2026-07-31 13:25:22 -04:00 committed by GitHub
parent 9bc2dd1a70
commit c433135c99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View file

@ -316,15 +316,11 @@ constexpr long double lerp(long double a, long double b, long double t) noexcept
# include <__cxx03/cmath>
#else
# include <__config>
# include <__math/hypot.h>
# include <__type_traits/enable_if.h>
# include <__type_traits/is_arithmetic.h>
# include <__type_traits/is_constant_evaluated.h>
# include <__type_traits/is_floating_point.h>
# include <__type_traits/is_same.h>
# include <__type_traits/promote.h>
# include <__type_traits/remove_cv.h>
# include <limits>
# include <version>
# include <__math/special_functions.h>

View file

@ -14,7 +14,9 @@
#define CASES_H
#include <cassert>
#include <cmath>
#include <complex>
#include <limits>
#include <type_traits>
#include "test_macros.h"