diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2021-07-30 16:13:59 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2021-07-30 16:41:28 -0500 |
commit | 2733b9abd8c1a8aafd3e69bd8cf1fccf1aad7ae8 (patch) | |
tree | 2e52c1040828d96f705772d68ba82048f5f5c5a9 /core/math | |
parent | 63be3c1f006c0f033925c3fe9afe5ba39f4df0ea (diff) |
Remove obsolete "dectime" method
Replaced by "move_toward"
Diffstat (limited to 'core/math')
-rw-r--r-- | core/math/math_funcs.cpp | 10 | ||||
-rw-r--r-- | core/math/math_funcs.h | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/core/math/math_funcs.cpp b/core/math/math_funcs.cpp index e92bb9f4aa..bbed257f60 100644 --- a/core/math/math_funcs.cpp +++ b/core/math/math_funcs.cpp @@ -88,16 +88,6 @@ int Math::range_step_decimals(double p_step) { return step_decimals(p_step); } -double Math::dectime(double p_value, double p_amount, double p_step) { - double sgn = p_value < 0 ? -1.0 : 1.0; - double val = Math::abs(p_value); - val -= p_amount * p_step; - if (val < 0.0) { - val = 0.0; - } - return val * sgn; -} - double Math::ease(double p_x, double p_c) { if (p_x < 0) { p_x = 0; diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h index 3389407e72..4e4f566517 100644 --- a/core/math/math_funcs.h +++ b/core/math/math_funcs.h @@ -296,7 +296,6 @@ public: static int step_decimals(double p_step); static int range_step_decimals(double p_step); static double snapped(double p_value, double p_step); - static double dectime(double p_value, double p_amount, double p_step); static uint32_t larger_prime(uint32_t p_val); |