From 81be9542eb068d878a7142618d1fb14562addc39 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Fri, 2 Nov 2018 05:00:52 -0400 Subject: [PATCH] Remove unused "dtoll" methods These methods aren't used anywhere in Godot's code, and all they do is cast floating types to int64_t. There's no reason to have these lines, they literally do nothing, and they aren't useful functions to begin with. --- core/math/math_funcs.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h index 9a486a49d09..65c318448c6 100644 --- a/core/math/math_funcs.h +++ b/core/math/math_funcs.h @@ -305,16 +305,6 @@ public: return b; } -#if defined(__GNUC__) - - static _ALWAYS_INLINE_ int64_t dtoll(double p_double) { return (int64_t)p_double; } ///@TODO OPTIMIZE - static _ALWAYS_INLINE_ int64_t dtoll(float p_float) { return (int64_t)p_float; } ///@TODO OPTIMIZE and rename -#else - - static _ALWAYS_INLINE_ int64_t dtoll(double p_double) { return (int64_t)p_double; } ///@TODO OPTIMIZE - static _ALWAYS_INLINE_ int64_t dtoll(float p_float) { return (int64_t)p_float; } ///@TODO OPTIMIZE and rename -#endif - static _ALWAYS_INLINE_ uint32_t halfbits_to_floatbits(uint16_t h) { uint16_t h_exp, h_sig; uint32_t f_sgn, f_exp, f_sig;