diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-08 22:45:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 22:45:29 +0100 |
commit | f73ef03a86912dfe5c6eb73a99c3f50c144c5030 (patch) | |
tree | 2f597136ad9b305305c63eb1e832f1abbf9bc788 | |
parent | 3aaaf2e3ec3873892119dd007abb1d855016efbd (diff) | |
parent | 4e3d5a9a2c4cc9658a1a65415911b20e0c6cd9e6 (diff) |
Merge pull request #58877 from akien-mga/core-unexpose-range_step_decimals
-rw-r--r-- | core/math/math_funcs.h | 2 | ||||
-rw-r--r-- | core/variant/variant_utility.cpp | 5 | ||||
-rw-r--r-- | doc/classes/@GlobalScope.xml | 6 |
3 files changed, 1 insertions, 12 deletions
diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h index 8c0b87cf4a..44340b97ae 100644 --- a/core/math/math_funcs.h +++ b/core/math/math_funcs.h @@ -322,7 +322,7 @@ public: // double only, as these functions are mainly used by the editor and not performance-critical, static double ease(double p_x, double p_c); static int step_decimals(double p_step); - static int range_step_decimals(double p_step); + static int range_step_decimals(double p_step); // For editor use only. static double snapped(double p_value, double p_step); static uint32_t larger_prime(uint32_t p_val); diff --git a/core/variant/variant_utility.cpp b/core/variant/variant_utility.cpp index e83c71098d..05fb577e2c 100644 --- a/core/variant/variant_utility.cpp +++ b/core/variant/variant_utility.cpp @@ -219,10 +219,6 @@ struct VariantUtilityFunctions { return Math::step_decimals(step); } - static inline int range_step_decimals(float step) { - return Math::range_step_decimals(step); - } - static inline double snapped(double value, double step) { return Math::snapped(value, step); } @@ -1204,7 +1200,6 @@ void Variant::_register_variant_utility_functions() { FUNCBINDR(ease, sarray("x", "curve"), Variant::UTILITY_FUNC_TYPE_MATH); FUNCBINDR(step_decimals, sarray("x"), Variant::UTILITY_FUNC_TYPE_MATH); - FUNCBINDR(range_step_decimals, sarray("x"), Variant::UTILITY_FUNC_TYPE_MATH); FUNCBINDR(snapped, sarray("x", "step"), Variant::UTILITY_FUNC_TYPE_MATH); FUNCBINDR(lerp, sarray("from", "to", "weight"), Variant::UTILITY_FUNC_TYPE_MATH); diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml index 3cfc6f3bd2..1228cd771c 100644 --- a/doc/classes/@GlobalScope.xml +++ b/doc/classes/@GlobalScope.xml @@ -791,12 +791,6 @@ [/codeblock] </description> </method> - <method name="range_step_decimals"> - <return type="int" /> - <argument index="0" name="x" type="float" /> - <description> - </description> - </method> <method name="rid_allocate_id"> <return type="int" /> <description> |