summaryrefslogtreecommitdiff
path: root/core/object
diff options
context:
space:
mode:
authorvoidedWarranties <hi+github@voidedxd.xyz>2023-02-26 22:30:56 -0800
committervoidedWarranties <hi+github@voidedxd.xyz>2023-02-26 22:30:56 -0800
commitbd5ab9f9b42ba0ee5cdda0947c3743ade075eaac (patch)
tree02fbad2343f6a37c756d0779465ff09a6309fc93 /core/object
parent0cd148313213e2923004be65bafd6a3781c917ec (diff)
Remove unused `ScriptLanguage` methods
Diffstat (limited to 'core/object')
-rw-r--r--core/object/script_language.h6
-rw-r--r--core/object/script_language_extension.cpp7
-rw-r--r--core/object/script_language_extension.h18
3 files changed, 0 insertions, 31 deletions
diff --git a/core/object/script_language.h b/core/object/script_language.h
index 3ef121a8e7..696c9a94a5 100644
--- a/core/object/script_language.h
+++ b/core/object/script_language.h
@@ -249,7 +249,6 @@ public:
virtual void init() = 0;
virtual String get_type() const = 0;
virtual String get_extension() const = 0;
- virtual Error execute_file(const String &p_path) = 0;
virtual void finish() = 0;
/* EDITOR FUNCTIONS */
@@ -428,11 +427,6 @@ public:
virtual int profiling_get_accumulated_data(ProfilingInfo *p_info_arr, int p_info_max) = 0;
virtual int profiling_get_frame_data(ProfilingInfo *p_info_arr, int p_info_max) = 0;
- virtual void *alloc_instance_binding_data(Object *p_object) { return nullptr; } //optional, not used by all languages
- virtual void free_instance_binding_data(void *p_data) {} //optional, not used by all languages
- virtual void refcount_incremented_instance_binding(Object *p_object) {} //optional, not used by all languages
- virtual bool refcount_decremented_instance_binding(Object *p_object) { return true; } //return true if it can die //optional, not used by all languages
-
virtual void frame();
virtual bool handles_global_class_type(const String &p_type) const { return false; }
diff --git a/core/object/script_language_extension.cpp b/core/object/script_language_extension.cpp
index c7eb32c020..0df9d58334 100644
--- a/core/object/script_language_extension.cpp
+++ b/core/object/script_language_extension.cpp
@@ -84,7 +84,6 @@ void ScriptLanguageExtension::_bind_methods() {
GDVIRTUAL_BIND(_init);
GDVIRTUAL_BIND(_get_type);
GDVIRTUAL_BIND(_get_extension);
- GDVIRTUAL_BIND(_execute_file, "path");
GDVIRTUAL_BIND(_finish);
GDVIRTUAL_BIND(_get_reserved_words);
@@ -144,12 +143,6 @@ void ScriptLanguageExtension::_bind_methods() {
GDVIRTUAL_BIND(_profiling_get_accumulated_data, "info_array", "info_max");
GDVIRTUAL_BIND(_profiling_get_frame_data, "info_array", "info_max");
- GDVIRTUAL_BIND(_alloc_instance_binding_data, "object");
- GDVIRTUAL_BIND(_free_instance_binding_data, "data");
-
- GDVIRTUAL_BIND(_refcount_incremented_instance_binding, "object");
- GDVIRTUAL_BIND(_refcount_decremented_instance_binding, "object");
-
GDVIRTUAL_BIND(_frame);
GDVIRTUAL_BIND(_handles_global_class_type, "type");
diff --git a/core/object/script_language_extension.h b/core/object/script_language_extension.h
index 8e162a1b0f..79cf712119 100644
--- a/core/object/script_language_extension.h
+++ b/core/object/script_language_extension.h
@@ -202,7 +202,6 @@ public:
EXBIND0(init)
EXBIND0RC(String, get_type)
EXBIND0RC(String, get_extension)
- EXBIND1R(Error, execute_file, const String &)
EXBIND0(finish)
/* EDITOR FUNCTIONS */
@@ -596,23 +595,6 @@ public:
return ret;
}
- GDVIRTUAL1R(GDExtensionPtr<void>, _alloc_instance_binding_data, Object *)
-
- virtual void *alloc_instance_binding_data(Object *p_object) override {
- GDExtensionPtr<void> ret = nullptr;
- GDVIRTUAL_REQUIRED_CALL(_alloc_instance_binding_data, p_object, ret);
- return ret.operator void *();
- }
-
- GDVIRTUAL1(_free_instance_binding_data, GDExtensionPtr<void>)
-
- virtual void free_instance_binding_data(void *p_data) override {
- GDVIRTUAL_REQUIRED_CALL(_free_instance_binding_data, p_data);
- }
-
- EXBIND1(refcount_incremented_instance_binding, Object *)
- EXBIND1R(bool, refcount_decremented_instance_binding, Object *)
-
EXBIND0(frame)
EXBIND1RC(bool, handles_global_class_type, const String &)