diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-02-12 11:14:34 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-02-12 13:39:39 +0100 |
commit | bd78b9f44525183e7f40b704ae644c2e1a4cbf87 (patch) | |
tree | cdb02d1308edaea5006f07ff9a1692a81fa4f061 /core/math/expression.cpp | |
parent | 49eef1180b441d6778d1b03168226bee7c815f3d (diff) |
Remove deprecated decimals builtin
Replaced by 'step_decimals' in 3.2 via #21425.
Diffstat (limited to 'core/math/expression.cpp')
-rw-r--r-- | core/math/expression.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/core/math/expression.cpp b/core/math/expression.cpp index 655098376c..7faec0817e 100644 --- a/core/math/expression.cpp +++ b/core/math/expression.cpp @@ -64,7 +64,6 @@ const char *Expression::func_name[Expression::FUNC_MAX] = { "is_nan", "is_inf", "ease", - "decimals", "step_decimals", "stepify", "lerp", @@ -153,7 +152,6 @@ int Expression::get_func_argument_count(BuiltinFunc p_func) { case MATH_EXP: case MATH_ISNAN: case MATH_ISINF: - case MATH_DECIMALS: case MATH_STEP_DECIMALS: case MATH_SEED: case MATH_RANDSEED: @@ -376,11 +374,6 @@ void Expression::exec_func(BuiltinFunc p_func, const Variant **p_inputs, Variant VALIDATE_ARG_NUM(1); *r_return = Math::ease((double)*p_inputs[0], (double)*p_inputs[1]); } break; - case MATH_DECIMALS: { - - VALIDATE_ARG_NUM(0); - *r_return = Math::step_decimals((double)*p_inputs[0]); - } break; case MATH_STEP_DECIMALS: { VALIDATE_ARG_NUM(0); |