From 67286a4971fbe97e7b9711f493512db47aa1cc58 Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Mon, 25 Apr 2022 18:21:50 +0200 Subject: [PATCH] Remove unused sign() (C++11 has signbit) --- src/base/math.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/base/math.h b/src/base/math.h index 581cedba6..93f258021 100644 --- a/src/base/math.h +++ b/src/base/math.h @@ -9,11 +9,6 @@ using std::clamp; -constexpr inline float sign(float f) -{ - return f < 0.0f ? -1.0f : 1.0f; -} - constexpr inline int round_to_int(float f) { return f > 0 ? (int)(f + 0.5f) : (int)(f - 0.5f);