From beaef88abd85c27a2feb60b72ba0222a0743cbbc Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Wed, 23 Nov 2022 17:23:20 -0500 Subject: [PATCH] Remove debug macro for GDScriptLanguage script_list --- modules/gdscript/gdscript.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 7744a1d67ea..b7feedaeaab 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -1351,13 +1351,11 @@ void GDScript::_get_dependencies(RBSet &p_dependencies, const GDScri GDScript::GDScript() : script_list(this) { -#ifdef DEBUG_ENABLED { MutexLock lock(GDScriptLanguage::get_singleton()->mutex); GDScriptLanguage::get_singleton()->script_list.add(&script_list); } -#endif } void GDScript::_save_orphaned_subclasses() { @@ -1491,13 +1489,11 @@ GDScript::~GDScript() { } } -#ifdef DEBUG_ENABLED { MutexLock lock(GDScriptLanguage::get_singleton()->mutex); GDScriptLanguage::get_singleton()->script_list.remove(&script_list); } -#endif if (GDScriptCache::singleton) { // Cache may have been already destroyed at engine shutdown. GDScriptCache::remove_script(get_path());