summaryrefslogtreecommitdiff
path: root/core/variant/array.cpp
diff options
context:
space:
mode:
authorMicky <micheledevita2@gmail.com>2022-11-25 14:48:48 +0100
committerMicky <micheledevita2@gmail.com>2022-11-25 18:34:50 +0100
commit67cdac6db82c33f30601a50e1da9d86b6c163426 (patch)
treedc7ed611f6c3e6ee75ca9844013d1086f2974337 /core/variant/array.cpp
parenta9fbf3718d4f8455dee1ebad05374d7baf714370 (diff)
Remove `Array.find_last()`
Diffstat (limited to 'core/variant/array.cpp')
-rw-r--r--core/variant/array.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/variant/array.cpp b/core/variant/array.cpp
index c6bbd43dc4..6c4e8ba450 100644
--- a/core/variant/array.cpp
+++ b/core/variant/array.cpp
@@ -334,11 +334,6 @@ int Array::rfind(const Variant &p_value, int p_from) const {
return -1;
}
-int Array::find_last(const Variant &p_value) const {
- ERR_FAIL_COND_V(!_p->typed.validate(p_value, "find_last"), -1);
- return rfind(p_value);
-}
-
int Array::count(const Variant &p_value) const {
ERR_FAIL_COND_V(!_p->typed.validate(p_value, "count"), 0);
if (_p->array.size() == 0) {