Remove unused ScriptLanguage methods
This commit is contained in:
@ -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; }
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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 &)
|
||||
|
||||
Reference in New Issue
Block a user