From 640edf1377daec1048267a7197865ac8df082921 Mon Sep 17 00:00:00 2001 From: Micky Date: Thu, 1 Dec 2022 13:02:48 +0100 Subject: [PATCH] Unexpose broken `Array.set_typed` --- core/variant/variant_call.cpp | 1 - doc/classes/Array.xml | 13 ++----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp index 2cb80dcab4ba..5a606c487260 100644 --- a/core/variant/variant_call.cpp +++ b/core/variant/variant_call.cpp @@ -2079,7 +2079,6 @@ static void _register_variant_builtin_methods() { bind_method(Array, max, sarray(), varray()); bind_method(Array, min, sarray(), varray()); bind_method(Array, typed_assign, sarray("array"), varray()); - bind_method(Array, set_typed, sarray("type", "class_name", "script"), varray()); bind_method(Array, is_typed, sarray(), varray()); bind_method(Array, get_typed_builtin, sarray(), varray()); bind_method(Array, get_typed_class_name, sarray(), varray()); diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 603974d6198a..b99a26f0fbaf 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -58,7 +58,8 @@ - Creates a typed array from the [param base] array. The base array can't be already typed. See [method set_typed] for more details. + Creates a typed array from the [param base] array. The base array can't be already typed.Makes the [Array] typed. + The [param type] should be one of the [enum Variant.Type] constants. [param class_name] is optional and can only be provided for [constant TYPE_OBJECT]. [param script] can only be provided if [param class_name] is not empty. @@ -529,16 +530,6 @@ Makes the [Array] read-only, i.e. disabled modifying of the array's elements. Does not apply to nested content, e.g. content of nested arrays. - - - - - - - Makes the [Array] typed. The [param type] should be one of the [enum Variant.Type] constants. [param class_name] is optional and can only be provided for [constant TYPE_OBJECT]. [param script] can only be provided if [param class_name] is not empty. - The method fails if an array is already typed. - -