summaryrefslogtreecommitdiff
path: root/core/math/math_funcs.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-07-31 10:20:29 +0200
committerGitHub <noreply@github.com>2021-07-31 10:20:29 +0200
commitd7b61838b1a2d90fec2446c23549bb77714c3bb6 (patch)
tree693d818950a14e42d3fc03196d6b9d41aa137f09 /core/math/math_funcs.cpp
parentf2efa6f4f38895a4adf8efc1e4f358a8dc5779cb (diff)
parent2733b9abd8c1a8aafd3e69bd8cf1fccf1aad7ae8 (diff)
Merge pull request #51084 from aaronfranke/no-dectime
Remove obsolete `dectime` method
Diffstat (limited to 'core/math/math_funcs.cpp')
-rw-r--r--core/math/math_funcs.cpp10
1 files changed, 0 insertions, 10 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;