From 529afd8fbbb411287fe71dc1041bfb8bb56659d5 Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Sun, 21 Aug 2022 14:51:10 +0200 Subject: Remove Transfor2/3D,AABB,Basis,RID from Variant destructors given Variant::clear() considers they don't need to be destroyed --- core/variant/variant_destruct.cpp | 5 ----- core/variant/variant_destruct.h | 5 ----- 2 files changed, 10 deletions(-) (limited to 'core/variant') diff --git a/core/variant/variant_destruct.cpp b/core/variant/variant_destruct.cpp index ab8303f3ae..5117c33e2b 100644 --- a/core/variant/variant_destruct.cpp +++ b/core/variant/variant_destruct.cpp @@ -41,13 +41,8 @@ static void add_destructor() { void Variant::_register_variant_destructors() { add_destructor>(); - add_destructor>(); - add_destructor>(); - add_destructor>(); - add_destructor>(); add_destructor>(); add_destructor>(); - add_destructor>(); add_destructor>(); add_destructor>(); add_destructor>(); diff --git a/core/variant/variant_destruct.h b/core/variant/variant_destruct.h index 5e3478635d..2730110c0f 100644 --- a/core/variant/variant_destruct.h +++ b/core/variant/variant_destruct.h @@ -50,13 +50,8 @@ struct VariantDestruct {}; } MAKE_PTRDESTRUCT(String); -MAKE_PTRDESTRUCT(Transform2D); -MAKE_PTRDESTRUCT(AABB); -MAKE_PTRDESTRUCT(Basis); -MAKE_PTRDESTRUCT(Transform3D); MAKE_PTRDESTRUCT(StringName); MAKE_PTRDESTRUCT(NodePath); -MAKE_PTRDESTRUCT(RID); MAKE_PTRDESTRUCT(Callable); MAKE_PTRDESTRUCT(Signal); MAKE_PTRDESTRUCT(Dictionary); -- cgit v1.2.3