Merge pull request #118957 from DeeJayLSP/gds-redundant-cleardata
Remove redundant `ClearData` struct from `GDScript`
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user