From 6e49e01711501100eb2365666ebf7d434e58a6d5 Mon Sep 17 00:00:00 2001 From: HolonProduction Date: Wed, 7 Jan 2026 15:39:34 +0100 Subject: [PATCH] GDScript: Remove unused `unload_static` --- modules/gdscript/gdscript.cpp | 4 ---- modules/gdscript/gdscript.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index c75a70d3be..d99d035d65 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -927,10 +927,6 @@ const Variant GDScript::get_rpc_config() const { return rpc_config; } -void GDScript::unload_static() const { - GDScriptCache::remove_script(fully_qualified_name); -} - Variant GDScript::callp(const StringName &p_method, const Variant **p_args, int p_argcount, Callable::CallError &r_error) { GDScript *top = this; while (top) { diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h index 3af83ba8ad..83dacef2ba 100644 --- a/modules/gdscript/gdscript.h +++ b/modules/gdscript/gdscript.h @@ -347,8 +347,6 @@ public: virtual const Variant get_rpc_config() const override; - void unload_static() const; - #ifdef TOOLS_ENABLED virtual bool is_placeholder_fallback_enabled() const override { return placeholder_fallback_enabled; } #endif