From 8af2858e39e405ebf2b4352b68920b75c1a25fcc Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 28 May 2024 14:15:57 +0200 Subject: [PATCH] feat: removed uninitialize function completely --- src/register_types.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/register_types.cpp b/src/register_types.cpp index 67d3c98..ab2fcd4 100644 --- a/src/register_types.cpp +++ b/src/register_types.cpp @@ -15,12 +15,6 @@ void initialize_gdextension_types(ModuleInitializationLevel p_level) godot_cpp_utils_register_types(); } -//void uninitialize_gdextension_types(ModuleInitializationLevel p_level) { -// if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) { -// return; -// } -//} - extern "C" { // Initialization @@ -28,7 +22,6 @@ extern "C" { GDExtensionBinding::InitObject init_obj(p_get_proc_address, p_library, r_initialization); init_obj.register_initializer(initialize_gdextension_types); -// init_obj.register_terminator(uninitialize_gdextension_types); init_obj.set_minimum_library_initialization_level(MODULE_INITIALIZATION_LEVEL_SCENE); return init_obj.init();