From 11a0932c8b754e9ea796065dd94b780a126c4995 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 14 Feb 2023 20:01:24 +0100 Subject: [PATCH] tests: remove unneeded feq() function Replaced by the almighty REQUIRE_FEQ(). --- src/tests/tests.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/tests/tests.h b/src/tests/tests.h index 28be773f..89333044 100644 --- a/src/tests/tests.h +++ b/src/tests/tests.h @@ -83,11 +83,6 @@ static inline pl_log pl_test_logger(void) } \ } while (0) -static inline bool feq(float a, float b, float epsilon) -{ - return fabs(a - b) < epsilon * fmax(1.0, fabs(a)); -} - #define REQUIRE_FEQ(a, b, epsilon) do \ { \ float _va = (a); \