Remove unused `ScriptLanguage` methods
This commit is contained in:
parent
0cd1483132
commit
bd5ab9f9b4
|
@ -249,7 +249,6 @@ public:
|
||||||
virtual void init() = 0;
|
virtual void init() = 0;
|
||||||
virtual String get_type() const = 0;
|
virtual String get_type() const = 0;
|
||||||
virtual String get_extension() const = 0;
|
virtual String get_extension() const = 0;
|
||||||
virtual Error execute_file(const String &p_path) = 0;
|
|
||||||
virtual void finish() = 0;
|
virtual void finish() = 0;
|
||||||
|
|
||||||
/* EDITOR FUNCTIONS */
|
/* 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_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 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 void frame();
|
||||||
|
|
||||||
virtual bool handles_global_class_type(const String &p_type) const { return false; }
|
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(_init);
|
||||||
GDVIRTUAL_BIND(_get_type);
|
GDVIRTUAL_BIND(_get_type);
|
||||||
GDVIRTUAL_BIND(_get_extension);
|
GDVIRTUAL_BIND(_get_extension);
|
||||||
GDVIRTUAL_BIND(_execute_file, "path");
|
|
||||||
GDVIRTUAL_BIND(_finish);
|
GDVIRTUAL_BIND(_finish);
|
||||||
|
|
||||||
GDVIRTUAL_BIND(_get_reserved_words);
|
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_accumulated_data, "info_array", "info_max");
|
||||||
GDVIRTUAL_BIND(_profiling_get_frame_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(_frame);
|
||||||
|
|
||||||
GDVIRTUAL_BIND(_handles_global_class_type, "type");
|
GDVIRTUAL_BIND(_handles_global_class_type, "type");
|
||||||
|
|
|
@ -202,7 +202,6 @@ public:
|
||||||
EXBIND0(init)
|
EXBIND0(init)
|
||||||
EXBIND0RC(String, get_type)
|
EXBIND0RC(String, get_type)
|
||||||
EXBIND0RC(String, get_extension)
|
EXBIND0RC(String, get_extension)
|
||||||
EXBIND1R(Error, execute_file, const String &)
|
|
||||||
EXBIND0(finish)
|
EXBIND0(finish)
|
||||||
|
|
||||||
/* EDITOR FUNCTIONS */
|
/* EDITOR FUNCTIONS */
|
||||||
|
@ -596,23 +595,6 @@ public:
|
||||||
return ret;
|
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)
|
EXBIND0(frame)
|
||||||
|
|
||||||
EXBIND1RC(bool, handles_global_class_type, const String &)
|
EXBIND1RC(bool, handles_global_class_type, const String &)
|
||||||
|
|
|
@ -21,12 +21,6 @@
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="_alloc_instance_binding_data" qualifiers="virtual">
|
|
||||||
<return type="void*" />
|
|
||||||
<param index="0" name="object" type="Object" />
|
|
||||||
<description>
|
|
||||||
</description>
|
|
||||||
</method>
|
|
||||||
<method name="_auto_indent_code" qualifiers="virtual const">
|
<method name="_auto_indent_code" qualifiers="virtual const">
|
||||||
<return type="String" />
|
<return type="String" />
|
||||||
<param index="0" name="code" type="String" />
|
<param index="0" name="code" type="String" />
|
||||||
|
@ -118,12 +112,6 @@
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="_execute_file" qualifiers="virtual">
|
|
||||||
<return type="int" enum="Error" />
|
|
||||||
<param index="0" name="path" type="String" />
|
|
||||||
<description>
|
|
||||||
</description>
|
|
||||||
</method>
|
|
||||||
<method name="_find_function" qualifiers="virtual const">
|
<method name="_find_function" qualifiers="virtual const">
|
||||||
<return type="int" />
|
<return type="int" />
|
||||||
<param index="0" name="class_name" type="String" />
|
<param index="0" name="class_name" type="String" />
|
||||||
|
@ -141,12 +129,6 @@
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="_free_instance_binding_data" qualifiers="virtual">
|
|
||||||
<return type="void" />
|
|
||||||
<param index="0" name="data" type="void*" />
|
|
||||||
<description>
|
|
||||||
</description>
|
|
||||||
</method>
|
|
||||||
<method name="_get_built_in_templates" qualifiers="virtual const">
|
<method name="_get_built_in_templates" qualifiers="virtual const">
|
||||||
<return type="Dictionary[]" />
|
<return type="Dictionary[]" />
|
||||||
<param index="0" name="object" type="StringName" />
|
<param index="0" name="object" type="StringName" />
|
||||||
|
@ -298,18 +280,6 @@
|
||||||
<description>
|
<description>
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="_refcount_decremented_instance_binding" qualifiers="virtual">
|
|
||||||
<return type="bool" />
|
|
||||||
<param index="0" name="object" type="Object" />
|
|
||||||
<description>
|
|
||||||
</description>
|
|
||||||
</method>
|
|
||||||
<method name="_refcount_incremented_instance_binding" qualifiers="virtual">
|
|
||||||
<return type="void" />
|
|
||||||
<param index="0" name="object" type="Object" />
|
|
||||||
<description>
|
|
||||||
</description>
|
|
||||||
</method>
|
|
||||||
<method name="_reload_all_scripts" qualifiers="virtual">
|
<method name="_reload_all_scripts" qualifiers="virtual">
|
||||||
<return type="void" />
|
<return type="void" />
|
||||||
<description>
|
<description>
|
||||||
|
|
|
@ -2027,11 +2027,6 @@ String GDScriptLanguage::get_extension() const {
|
||||||
return "gd";
|
return "gd";
|
||||||
}
|
}
|
||||||
|
|
||||||
Error GDScriptLanguage::execute_file(const String &p_path) {
|
|
||||||
// ??
|
|
||||||
return OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GDScriptLanguage::finish() {
|
void GDScriptLanguage::finish() {
|
||||||
if (_call_stack) {
|
if (_call_stack) {
|
||||||
memdelete_arr(_call_stack);
|
memdelete_arr(_call_stack);
|
||||||
|
|
|
@ -473,7 +473,6 @@ public:
|
||||||
virtual void init() override;
|
virtual void init() override;
|
||||||
virtual String get_type() const override;
|
virtual String get_type() const override;
|
||||||
virtual String get_extension() const override;
|
virtual String get_extension() const override;
|
||||||
virtual Error execute_file(const String &p_path) override;
|
|
||||||
virtual void finish() override;
|
virtual void finish() override;
|
||||||
|
|
||||||
/* EDITOR FUNCTIONS */
|
/* EDITOR FUNCTIONS */
|
||||||
|
|
|
@ -92,11 +92,6 @@ String CSharpLanguage::get_extension() const {
|
||||||
return "cs";
|
return "cs";
|
||||||
}
|
}
|
||||||
|
|
||||||
Error CSharpLanguage::execute_file(const String &p_path) {
|
|
||||||
// ??
|
|
||||||
return OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CSharpLanguage::init() {
|
void CSharpLanguage::init() {
|
||||||
#ifdef DEBUG_METHODS_ENABLED
|
#ifdef DEBUG_METHODS_ENABLED
|
||||||
if (OS::get_singleton()->get_cmdline_args().find("--class-db-json")) {
|
if (OS::get_singleton()->get_cmdline_args().find("--class-db-json")) {
|
||||||
|
|
|
@ -413,7 +413,6 @@ public:
|
||||||
/* LANGUAGE FUNCTIONS */
|
/* LANGUAGE FUNCTIONS */
|
||||||
String get_type() const override;
|
String get_type() const override;
|
||||||
String get_extension() const override;
|
String get_extension() const override;
|
||||||
Error execute_file(const String &p_path) override;
|
|
||||||
void init() override;
|
void init() override;
|
||||||
void finish() override;
|
void finish() override;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue