summaryrefslogtreecommitdiff
path: root/core/variant/variant_utility.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2021-10-11 19:28:34 -0300
committerGitHub <noreply@github.com>2021-10-11 19:28:34 -0300
commitf9aec342dcd51d65c5970dd395e3c7a66cac446c (patch)
tree9d5b542652e576f865abf0c97a37ee272210ae2e /core/variant/variant_utility.cpp
parent9ed4f8367b29204b89f9feaf86727b24396fb180 (diff)
parent610de0974db4feb7e50c9349a8a164b6bf0f36c8 (diff)
Merge pull request #53687 from godotengine/revert-48332-implement-ping-pong
Revert "Implement reverse playback and ping-pong loop in AnimationPlayer and NodeAnimation"
Diffstat (limited to 'core/variant/variant_utility.cpp')
-rw-r--r--core/variant/variant_utility.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/variant/variant_utility.cpp b/core/variant/variant_utility.cpp
index e89bdd4faa..666b582e39 100644
--- a/core/variant/variant_utility.cpp
+++ b/core/variant/variant_utility.cpp
@@ -275,10 +275,6 @@ struct VariantUtilityFunctions {
return Math::wrapf(value, min, max);
}
- static inline double pingpong(double value, double length) {
- return Math::pingpong(value, length);
- }
-
static inline Variant max(const Variant **p_args, int p_argcount, Callable::CallError &r_error) {
if (p_argcount < 2) {
r_error.error = Callable::CallError::CALL_ERROR_TOO_FEW_ARGUMENTS;
@@ -1230,7 +1226,6 @@ void Variant::_register_variant_utility_functions() {
FUNCBINDR(clampf, sarray("value", "min", "max"), Variant::UTILITY_FUNC_TYPE_MATH);
FUNCBINDR(nearest_po2, sarray("value"), Variant::UTILITY_FUNC_TYPE_MATH);
- FUNCBINDR(pingpong, sarray("value", "length"), Variant::UTILITY_FUNC_TYPE_MATH);
// Random