From 796f87587006f9f5091ca3e1f3b887808f7b5395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 2 Dec 2021 11:45:11 +0100 Subject: [PATCH] Revert "Expose Variant operator= to GDNative" --- modules/gdnative/gdnative/variant.cpp | 6 ------ modules/gdnative/gdnative_api.json | 8 -------- modules/gdnative/include/gdnative/variant.h | 2 -- 3 files changed, 16 deletions(-) diff --git a/modules/gdnative/gdnative/variant.cpp b/modules/gdnative/gdnative/variant.cpp index b4d4730cb86..8026bf90008 100644 --- a/modules/gdnative/gdnative/variant.cpp +++ b/modules/gdnative/gdnative/variant.cpp @@ -62,12 +62,6 @@ godot_variant_type GDAPI godot_variant_get_type(const godot_variant *p_self) { return (godot_variant_type)self->get_type(); } -void GDAPI godot_variant_operator_assign(godot_variant *r_dest, const godot_variant *p_v) { - Variant *dest = (Variant *)r_dest; - Variant *v = (Variant *)p_v; - *dest = *v; -} - void GDAPI godot_variant_new_copy(godot_variant *p_dest, const godot_variant *p_src) { Variant *dest = (Variant *)p_dest; Variant *src = (Variant *)p_src; diff --git a/modules/gdnative/gdnative_api.json b/modules/gdnative/gdnative_api.json index 4b88259e772..3a56a25e9f7 100644 --- a/modules/gdnative/gdnative_api.json +++ b/modules/gdnative/gdnative_api.json @@ -4393,14 +4393,6 @@ ["const godot_variant *", "p_v"] ] }, - { - "name": "godot_variant_operator_assign", - "return_type": "void", - "arguments": [ - ["godot_variant *", "r_dest"], - ["const godot_variant *", "p_v"] - ] - }, { "name": "godot_variant_new_copy", "return_type": "void", diff --git a/modules/gdnative/include/gdnative/variant.h b/modules/gdnative/include/gdnative/variant.h index 377ed6045b3..c20b71a8d8d 100644 --- a/modules/gdnative/include/gdnative/variant.h +++ b/modules/gdnative/include/gdnative/variant.h @@ -170,8 +170,6 @@ extern "C" { godot_variant_type GDAPI godot_variant_get_type(const godot_variant *p_v); -void GDAPI godot_variant_operator_assign(godot_variant *r_dest, const godot_variant *p_v); - void GDAPI godot_variant_new_copy(godot_variant *r_dest, const godot_variant *p_src); void GDAPI godot_variant_new_nil(godot_variant *r_dest);