Skip to content

Commit

Permalink
Merge pull request godotengine#58877 from akien-mga/core-unexpose-ran…
Browse files Browse the repository at this point in the history
…ge_step_decimals
  • Loading branch information
akien-mga authored Mar 8, 2022
2 parents 3aaaf2e + 4e3d5a9 commit f73ef03
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion core/math/math_funcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class Math {
// 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);
Expand Down
5 changes: 0 additions & 5 deletions core/variant/variant_utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down
6 changes: 0 additions & 6 deletions doc/classes/@GlobalScope.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit f73ef03

Please sign in to comment.