Remove Transfor2/3D,AABB,Basis,RID from Variant destructors given Variant::clear() considers they don't need to be destroyed

This commit is contained in:
Emmanuel Leblond 2022-08-21 14:51:10 +02:00
parent 4ab3fdcda0
commit 529afd8fbb
No known key found for this signature in database
GPG key ID: C360860E645EFFC0
2 changed files with 0 additions and 10 deletions

View file

@ -41,13 +41,8 @@ static void add_destructor() {
void Variant::_register_variant_destructors() {
add_destructor<VariantDestruct<String>>();
add_destructor<VariantDestruct<Transform2D>>();
add_destructor<VariantDestruct<::AABB>>();
add_destructor<VariantDestruct<Basis>>();
add_destructor<VariantDestruct<Transform3D>>();
add_destructor<VariantDestruct<StringName>>();
add_destructor<VariantDestruct<NodePath>>();
add_destructor<VariantDestruct<::RID>>();
add_destructor<VariantDestruct<Callable>>();
add_destructor<VariantDestruct<Signal>>();
add_destructor<VariantDestruct<Dictionary>>();

View file

@ -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);