From f68305bf00d721d2401cb188df4afae21faa2602 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 11 Sep 2023 22:12:04 +0200 Subject: [PATCH] util/NumberParser: remove obsolete __ANDROID_API__ check --- src/util/NumberParser.hxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/util/NumberParser.hxx b/src/util/NumberParser.hxx index e888b4b80..a360e2d88 100644 --- a/src/util/NumberParser.hxx +++ b/src/util/NumberParser.hxx @@ -55,10 +55,5 @@ ParseDouble(const char *p, char **endptr=nullptr) noexcept static inline float ParseFloat(const char *p, char **endptr=nullptr) noexcept { -#if defined(__BIONIC__) && __ANDROID_API__ < 21 - /* strtof() requires API level 21 */ - return (float)ParseDouble(p, endptr); -#else return strtof(p, endptr); -#endif }