Merge pull request #118957 from DeeJayLSP/gds-redundant-cleardata

Remove redundant `ClearData` struct from `GDScript`
This commit is contained in:
Thaddeus Crews
2026-06-19 15:09:21 -05:00
3 changed files with 2 additions and 10 deletions
+1
View File
@@ -41,6 +41,7 @@
#include "core/io/resource_loader.h"
#include "core/object/callable_mp.h"
#include "core/object/class_db.h"
#include "core/templates/rb_set.h"
#ifdef TOOLS_ENABLED
#include "editor/gdscript_docgen.h"
-10
View File
@@ -36,7 +36,6 @@
#include "core/debugger/script_debugger.h"
#include "core/doc_data.h"
#include "core/object/script_language.h"
#include "core/templates/rb_set.h"
class GDScriptNativeClass : public RefCounted {
GDCLASS(GDScriptNativeClass, RefCounted);
@@ -70,15 +69,6 @@ class GDScript : public Script {
PropertyInfo property_info;
};
struct ClearData {
RBSet<GDScriptFunction *> functions;
RBSet<Ref<Script>> scripts;
void clear() {
functions.clear();
scripts.clear();
}
};
friend class GDScriptInstance;
friend class GDScriptFunction;
friend class GDScriptAnalyzer;
+1
View File
@@ -37,6 +37,7 @@
#include "core/io/file_access.h"
#include "core/io/resource_loader.h"
#include "core/templates/rb_set.h"
#include "core/templates/vector.h"
GDScriptParserRef::Status GDScriptParserRef::get_status() const {