From 065dd099ddada9df681e352e0c65db391f2d3cad Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 15 Aug 2024 07:53:08 +0200 Subject: [PATCH] Remove empty bind_methods() --- editor/animation_track_editor_plugins.cpp | 6 -- editor/animation_track_editor_plugins.h | 6 -- editor/dependency_editor.cpp | 9 --- editor/dependency_editor.h | 5 -- editor/editor_asset_installer.cpp | 3 - editor/editor_asset_installer.h | 1 - editor/editor_properties.cpp | 75 ------------------- editor/editor_properties.h | 29 ------- editor/editor_properties_array_dict.cpp | 9 --- editor/editor_properties_array_dict.h | 3 - editor/export/export_template_manager.cpp | 3 - editor/export/export_template_manager.h | 1 - editor/gui/editor_object_selector.cpp | 3 - editor/gui/editor_object_selector.h | 1 - editor/node_dock.cpp | 3 - editor/node_dock.h | 1 - editor/plugins/abstract_polygon_2d_editor.cpp | 3 - editor/plugins/abstract_polygon_2d_editor.h | 1 - .../plugins/animation_tree_editor_plugin.cpp | 3 - editor/plugins/animation_tree_editor_plugin.h | 1 - editor/plugins/bone_map_editor_plugin.cpp | 3 - editor/plugins/bone_map_editor_plugin.h | 2 - editor/plugins/camera_3d_editor_plugin.cpp | 3 - editor/plugins/camera_3d_editor_plugin.h | 1 - .../cpu_particles_2d_editor_plugin.cpp | 3 - .../plugins/cpu_particles_2d_editor_plugin.h | 1 - .../cpu_particles_3d_editor_plugin.cpp | 3 - .../plugins/cpu_particles_3d_editor_plugin.h | 1 - editor/plugins/editor_plugin_settings.cpp | 3 - editor/plugins/editor_plugin_settings.h | 2 - editor/plugins/font_config_plugin.cpp | 3 - editor/plugins/font_config_plugin.h | 1 - .../gpu_particles_2d_editor_plugin.cpp | 3 - .../plugins/gpu_particles_2d_editor_plugin.h | 1 - .../gpu_particles_3d_editor_plugin.cpp | 6 -- .../plugins/gpu_particles_3d_editor_plugin.h | 3 - ..._particles_collision_sdf_editor_plugin.cpp | 3 - ...pu_particles_collision_sdf_editor_plugin.h | 1 - editor/plugins/input_event_editor_plugin.cpp | 3 - editor/plugins/input_event_editor_plugin.h | 1 - editor/plugins/mesh_library_editor_plugin.cpp | 3 - editor/plugins/mesh_library_editor_plugin.h | 3 - editor/plugins/multimesh_editor_plugin.cpp | 3 - editor/plugins/multimesh_editor_plugin.h | 1 - .../physical_bone_3d_editor_plugin.cpp | 3 - .../plugins/physical_bone_3d_editor_plugin.h | 3 - editor/plugins/root_motion_editor_plugin.cpp | 3 - editor/plugins/root_motion_editor_plugin.h | 1 - editor/plugins/shader_file_editor_plugin.cpp | 3 - editor/plugins/shader_file_editor_plugin.h | 1 - editor/plugins/skeleton_2d_editor_plugin.cpp | 3 - editor/plugins/skeleton_2d_editor_plugin.h | 1 - .../plugins/skeleton_ik_3d_editor_plugin.cpp | 3 - editor/plugins/skeleton_ik_3d_editor_plugin.h | 3 - .../plugins/visual_shader_editor_plugin.cpp | 6 -- editor/plugins/visual_shader_editor_plugin.h | 4 - editor/plugins/voxel_gi_editor_plugin.cpp | 3 - editor/plugins/voxel_gi_editor_plugin.h | 1 - modules/fbx/fbx_document.cpp | 3 - modules/fbx/fbx_document.h | 3 - ...cument_extension_convert_importer_mesh.cpp | 3 - ...document_extension_convert_importer_mesh.h | 1 - .../editor/navigation_mesh_editor_plugin.cpp | 3 - .../editor/navigation_mesh_editor_plugin.h | 1 - .../openxr/editor/openxr_select_runtime.cpp | 3 - modules/openxr/editor/openxr_select_runtime.h | 1 - scene/3d/occluder_instance_3d.cpp | 3 - scene/3d/occluder_instance_3d.h | 1 - scene/animation/animation_blend_tree.cpp | 21 ------ scene/animation/animation_blend_tree.h | 21 ------ servers/audio/audio_stream.cpp | 6 -- servers/audio/audio_stream.h | 5 -- .../renderer_rd/storage_rd/render_data_rd.cpp | 3 - .../renderer_rd/storage_rd/render_data_rd.h | 3 - .../storage_rd/render_scene_data_rd.cpp | 3 - .../storage_rd/render_scene_data_rd.h | 2 - 76 files changed, 347 deletions(-) diff --git a/editor/animation_track_editor_plugins.cpp b/editor/animation_track_editor_plugins.cpp index 0297aaaf7f3..d36e152ed9e 100644 --- a/editor/animation_track_editor_plugins.cpp +++ b/editor/animation_track_editor_plugins.cpp @@ -353,9 +353,6 @@ void AnimationTrackEditAudio::set_node(Object *p_object) { id = p_object->get_instance_id(); } -void AnimationTrackEditAudio::_bind_methods() { -} - AnimationTrackEditAudio::AnimationTrackEditAudio() { AudioStreamPreviewGenerator::get_singleton()->connect("preview_updated", callable_mp(this, &AnimationTrackEditAudio::_preview_changed)); } @@ -952,9 +949,6 @@ void AnimationTrackEditTypeAudio::draw_key(int p_index, float p_pixels_sec, int } } -void AnimationTrackEditTypeAudio::_bind_methods() { -} - AnimationTrackEditTypeAudio::AnimationTrackEditTypeAudio() { AudioStreamPreviewGenerator::get_singleton()->connect("preview_updated", callable_mp(this, &AnimationTrackEditTypeAudio::_preview_changed)); } diff --git a/editor/animation_track_editor_plugins.h b/editor/animation_track_editor_plugins.h index 0e9ad442296..7ddbae1bbc3 100644 --- a/editor/animation_track_editor_plugins.h +++ b/editor/animation_track_editor_plugins.h @@ -63,9 +63,6 @@ class AnimationTrackEditAudio : public AnimationTrackEdit { void _preview_changed(ObjectID p_which); -protected: - static void _bind_methods(); - public: virtual int get_key_height() const override; virtual Rect2 get_key_rect(int p_index, float p_pixels_sec) override; @@ -121,9 +118,6 @@ class AnimationTrackEditTypeAudio : public AnimationTrackEdit { float len_resizing_rel = 0.0f; bool over_drag_position = false; -protected: - static void _bind_methods(); - public: virtual void gui_input(const Ref &p_event) override; diff --git a/editor/dependency_editor.cpp b/editor/dependency_editor.cpp index c83e677b37f..02b0eca6aa6 100644 --- a/editor/dependency_editor.cpp +++ b/editor/dependency_editor.cpp @@ -237,9 +237,6 @@ void DependencyEditor::edit(const String &p_path) { } } -void DependencyEditor::_bind_methods() { -} - DependencyEditor::DependencyEditor() { VBoxContainer *vb = memnew(VBoxContainer); vb->set_name(TTR("Dependencies")); @@ -353,9 +350,6 @@ void DependencyEditorOwners::_file_option(int p_option) { } } -void DependencyEditorOwners::_bind_methods() { -} - void DependencyEditorOwners::_fill_owners(EditorFileSystemDirectory *efsd) { if (!efsd) { return; @@ -865,9 +859,6 @@ void OrphanResourcesDialog::_button_pressed(Object *p_item, int p_column, int p_ dep_edit->edit(path); } -void OrphanResourcesDialog::_bind_methods() { -} - OrphanResourcesDialog::OrphanResourcesDialog() { set_title(TTR("Orphan Resource Explorer")); delete_confirm = memnew(ConfirmationDialog); diff --git a/editor/dependency_editor.h b/editor/dependency_editor.h index d43b12f1d25..0256f39979d 100644 --- a/editor/dependency_editor.h +++ b/editor/dependency_editor.h @@ -60,9 +60,6 @@ class DependencyEditor : public AcceptDialog { void _update_file(); -protected: - static void _bind_methods(); - public: void edit(const String &p_path); DependencyEditor(); @@ -81,7 +78,6 @@ class DependencyEditorOwners : public AcceptDialog { void _fill_owners(EditorFileSystemDirectory *efsd); - static void _bind_methods(); void _list_rmb_clicked(int p_item, const Vector2 &p_pos, MouseButton p_mouse_button_index); void _select_file(int p_idx); void _empty_clicked(const Vector2 &p_pos, MouseButton p_mouse_button_index); @@ -175,7 +171,6 @@ class OrphanResourcesDialog : public ConfirmationDialog { void _button_pressed(Object *p_item, int p_column, int p_id, MouseButton p_button); void refresh(); - static void _bind_methods(); public: void show(); diff --git a/editor/editor_asset_installer.cpp b/editor/editor_asset_installer.cpp index 33049b6bc23..b415c72c156 100644 --- a/editor/editor_asset_installer.cpp +++ b/editor/editor_asset_installer.cpp @@ -659,9 +659,6 @@ void EditorAssetInstaller::_notification(int p_what) { } } -void EditorAssetInstaller::_bind_methods() { -} - EditorAssetInstaller::EditorAssetInstaller() { VBoxContainer *vb = memnew(VBoxContainer); add_child(vb); diff --git a/editor/editor_asset_installer.h b/editor/editor_asset_installer.h index bc63bc99162..41f092f3044 100644 --- a/editor/editor_asset_installer.h +++ b/editor/editor_asset_installer.h @@ -96,7 +96,6 @@ class EditorAssetInstaller : public ConfirmationDialog { protected: void _notification(int p_what); - static void _bind_methods(); public: void open_asset(const String &p_path, bool p_autoskip_toplevel = false); diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index fdb4ec170b8..19a4165041d 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -129,9 +129,6 @@ void EditorPropertyText::set_placeholder(const String &p_string) { text->set_placeholder(p_string); } -void EditorPropertyText::_bind_methods() { -} - EditorPropertyText::EditorPropertyText() { HBoxContainer *hb = memnew(HBoxContainer); add_child(hb); @@ -219,9 +216,6 @@ void EditorPropertyMultilineText::_notification(int p_what) { } } -void EditorPropertyMultilineText::_bind_methods() { -} - EditorPropertyMultilineText::EditorPropertyMultilineText(bool p_expression) { HBoxContainer *hb = memnew(HBoxContainer); hb->add_theme_constant_override("separation", 0); @@ -343,9 +337,6 @@ void EditorPropertyTextEnum::setup(const Vector &p_options, bool p_strin } } -void EditorPropertyTextEnum::_bind_methods() { -} - void EditorPropertyTextEnum::_notification(int p_what) { switch (p_what) { case NOTIFICATION_ENTER_TREE: @@ -447,9 +438,6 @@ void EditorPropertyLocale::_locale_focus_exited() { _locale_selected(locale->get_text()); } -void EditorPropertyLocale::_bind_methods() { -} - EditorPropertyLocale::EditorPropertyLocale() { HBoxContainer *locale_hb = memnew(HBoxContainer); add_child(locale_hb); @@ -586,9 +574,6 @@ bool EditorPropertyPath::_can_drop_data_fw(const Point2 &p_point, const Variant return false; } -void EditorPropertyPath::_bind_methods() { -} - EditorPropertyPath::EditorPropertyPath() { HBoxContainer *path_hb = memnew(HBoxContainer); add_child(path_hb); @@ -637,9 +622,6 @@ void EditorPropertyClassName::_dialog_created() { update_property(); } -void EditorPropertyClassName::_bind_methods() { -} - EditorPropertyClassName::EditorPropertyClassName() { property = memnew(Button); property->set_clip_text(true); @@ -669,9 +651,6 @@ void EditorPropertyCheck::update_property() { checkbox->set_disabled(is_read_only()); } -void EditorPropertyCheck::_bind_methods() { -} - EditorPropertyCheck::EditorPropertyCheck() { checkbox = memnew(CheckBox); checkbox->set_text(TTR("On")); @@ -725,9 +704,6 @@ void EditorPropertyEnum::set_option_button_clip(bool p_enable) { options->set_clip_text(p_enable); } -void EditorPropertyEnum::_bind_methods() { -} - EditorPropertyEnum::EditorPropertyEnum() { options = memnew(OptionButton); options->set_clip_text(true); @@ -804,9 +780,6 @@ void EditorPropertyFlags::setup(const Vector &p_options) { } } -void EditorPropertyFlags::_bind_methods() { -} - EditorPropertyFlags::EditorPropertyFlags() { vbox = memnew(VBoxContainer); add_child(vbox); @@ -1280,9 +1253,6 @@ void EditorPropertyLayers::_refresh_names() { setup(layer_type); } -void EditorPropertyLayers::_bind_methods() { -} - EditorPropertyLayers::EditorPropertyLayers() { HBoxContainer *hb = memnew(HBoxContainer); hb->set_clip_contents(true); @@ -1330,9 +1300,6 @@ void EditorPropertyInteger::update_property() { #endif } -void EditorPropertyInteger::_bind_methods() { -} - void EditorPropertyInteger::setup(int64_t p_min, int64_t p_max, int64_t p_step, bool p_hide_slider, bool p_allow_greater, bool p_allow_lesser, const String &p_suffix) { spin->set_min(p_min); spin->set_max(p_max); @@ -1385,9 +1352,6 @@ void EditorPropertyObjectID::setup(const String &p_base_type) { base_type = p_base_type; } -void EditorPropertyObjectID::_bind_methods() { -} - EditorPropertyObjectID::EditorPropertyObjectID() { edit = memnew(Button); add_child(edit); @@ -1413,9 +1377,6 @@ void EditorPropertySignal::update_property() { edit->set_icon(get_editor_theme_icon(SNAME("Signals"))); } -void EditorPropertySignal::_bind_methods() { -} - EditorPropertySignal::EditorPropertySignal() { edit = memnew(Button); add_child(edit); @@ -1435,9 +1396,6 @@ void EditorPropertyCallable::update_property() { edit->set_icon(get_editor_theme_icon(SNAME("Callable"))); } -void EditorPropertyCallable::_bind_methods() { -} - EditorPropertyCallable::EditorPropertyCallable() { edit = memnew(Button); add_child(edit); @@ -1465,9 +1423,6 @@ void EditorPropertyFloat::update_property() { spin->set_value_no_signal(val); } -void EditorPropertyFloat::_bind_methods() { -} - void EditorPropertyFloat::setup(double p_min, double p_max, double p_step, bool p_hide_slider, bool p_exp_range, bool p_greater, bool p_lesser, const String &p_suffix, bool p_radians_as_degrees) { radians_as_degrees = p_radians_as_degrees; spin->set_min(p_min); @@ -1675,9 +1630,6 @@ void EditorPropertyEasing::_notification(int p_what) { } } -void EditorPropertyEasing::_bind_methods() { -} - EditorPropertyEasing::EditorPropertyEasing() { easing_draw = memnew(Control); easing_draw->connect(SceneStringName(draw), callable_mp(this, &EditorPropertyEasing::_draw_easing)); @@ -1740,9 +1692,6 @@ void EditorPropertyRect2::_notification(int p_what) { } } -void EditorPropertyRect2::_bind_methods() { -} - void EditorPropertyRect2::setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix) { for (int i = 0; i < 4; i++) { spin[i]->set_min(p_min); @@ -1837,9 +1786,6 @@ void EditorPropertyRect2i::_notification(int p_what) { } } -void EditorPropertyRect2i::_bind_methods() { -} - void EditorPropertyRect2i::setup(int p_min, int p_max, const String &p_suffix) { for (int i = 0; i < 4; i++) { spin[i]->set_min(p_min); @@ -1933,9 +1879,6 @@ void EditorPropertyPlane::_notification(int p_what) { } } -void EditorPropertyPlane::_bind_methods() { -} - void EditorPropertyPlane::setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix) { for (int i = 0; i < 4; i++) { spin[i]->set_min(p_min); @@ -2085,9 +2028,6 @@ void EditorPropertyQuaternion::_notification(int p_what) { } } -void EditorPropertyQuaternion::_bind_methods() { -} - void EditorPropertyQuaternion::setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix, bool p_hide_editor) { for (int i = 0; i < 4; i++) { spin[i]->set_min(p_min); @@ -2232,9 +2172,6 @@ void EditorPropertyAABB::_notification(int p_what) { } } -void EditorPropertyAABB::_bind_methods() { -} - void EditorPropertyAABB::setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix) { for (int i = 0; i < 6; i++) { spin[i]->set_min(p_min); @@ -2313,9 +2250,6 @@ void EditorPropertyTransform2D::_notification(int p_what) { } } -void EditorPropertyTransform2D::_bind_methods() { -} - void EditorPropertyTransform2D::setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix) { for (int i = 0; i < 6; i++) { spin[i]->set_min(p_min); @@ -2398,9 +2332,6 @@ void EditorPropertyBasis::_notification(int p_what) { } } -void EditorPropertyBasis::_bind_methods() { -} - void EditorPropertyBasis::setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix) { for (int i = 0; i < 9; i++) { spin[i]->set_min(p_min); @@ -2490,9 +2421,6 @@ void EditorPropertyTransform3D::_notification(int p_what) { } } -void EditorPropertyTransform3D::_bind_methods() { -} - void EditorPropertyTransform3D::setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix) { for (int i = 0; i < 12; i++) { spin[i]->set_min(p_min); @@ -2590,9 +2518,6 @@ void EditorPropertyProjection::_notification(int p_what) { } } -void EditorPropertyProjection::_bind_methods() { -} - void EditorPropertyProjection::setup(double p_min, double p_max, double p_step, bool p_hide_slider, const String &p_suffix) { for (int i = 0; i < 16; i++) { spin[i]->set_min(p_min); diff --git a/editor/editor_properties.h b/editor/editor_properties.h index e9e788ab7bd..2ec78cdb448 100644 --- a/editor/editor_properties.h +++ b/editor/editor_properties.h @@ -66,7 +66,6 @@ class EditorPropertyText : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; - static void _bind_methods(); public: void set_string_name(bool p_enabled); @@ -92,7 +91,6 @@ class EditorPropertyMultilineText : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; void _notification(int p_what); - static void _bind_methods(); public: virtual void update_property() override; @@ -126,7 +124,6 @@ class EditorPropertyTextEnum : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; - static void _bind_methods(); void _notification(int p_what); public: @@ -153,7 +150,6 @@ class EditorPropertyPath : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; - static void _bind_methods(); void _notification(int p_what); public: @@ -174,7 +170,6 @@ class EditorPropertyLocale : public EditorProperty { void _locale_focus_exited(); protected: - static void _bind_methods(); void _notification(int p_what); public: @@ -196,7 +191,6 @@ private: protected: virtual void _set_read_only(bool p_read_only) override; - static void _bind_methods(); public: void setup(const String &p_base_type, const String &p_selected_type); @@ -212,7 +206,6 @@ class EditorPropertyCheck : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; - static void _bind_methods(); public: virtual void update_property() override; @@ -227,7 +220,6 @@ class EditorPropertyEnum : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; - static void _bind_methods(); public: void setup(const Vector &p_options); @@ -246,7 +238,6 @@ class EditorPropertyFlags : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; - static void _bind_methods(); public: void setup(const Vector &p_options); @@ -327,7 +318,6 @@ private: protected: void _notification(int p_what); virtual void _set_read_only(bool p_read_only) override; - static void _bind_methods(); public: void setup(LayerType p_layer_type); @@ -344,7 +334,6 @@ class EditorPropertyInteger : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; - static void _bind_methods(); public: virtual void update_property() override; @@ -360,7 +349,6 @@ class EditorPropertyObjectID : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; - static void _bind_methods(); public: virtual void update_property() override; @@ -374,9 +362,6 @@ class EditorPropertySignal : public EditorProperty { String base_type; void _edit_pressed(); -protected: - static void _bind_methods(); - public: virtual void update_property() override; EditorPropertySignal(); @@ -387,9 +372,6 @@ class EditorPropertyCallable : public EditorProperty { Button *edit = nullptr; String base_type; -protected: - static void _bind_methods(); - public: virtual void update_property() override; EditorPropertyCallable(); @@ -403,7 +385,6 @@ class EditorPropertyFloat : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; - static void _bind_methods(); public: virtual void update_property() override; @@ -445,7 +426,6 @@ class EditorPropertyEasing : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; - static void _bind_methods(); public: virtual void update_property() override; @@ -461,7 +441,6 @@ class EditorPropertyRect2 : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; void _notification(int p_what); - static void _bind_methods(); public: virtual void update_property() override; @@ -477,7 +456,6 @@ class EditorPropertyRect2i : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; void _notification(int p_what); - static void _bind_methods(); public: virtual void update_property() override; @@ -493,7 +471,6 @@ class EditorPropertyPlane : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; void _notification(int p_what); - static void _bind_methods(); public: virtual void update_property() override; @@ -526,7 +503,6 @@ class EditorPropertyQuaternion : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; void _notification(int p_what); - static void _bind_methods(); public: virtual void update_property() override; @@ -542,7 +518,6 @@ class EditorPropertyAABB : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; void _notification(int p_what); - static void _bind_methods(); public: virtual void update_property() override; @@ -558,7 +533,6 @@ class EditorPropertyTransform2D : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; void _notification(int p_what); - static void _bind_methods(); public: virtual void update_property() override; @@ -574,7 +548,6 @@ class EditorPropertyBasis : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; void _notification(int p_what); - static void _bind_methods(); public: virtual void update_property() override; @@ -590,7 +563,6 @@ class EditorPropertyTransform3D : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; void _notification(int p_what); - static void _bind_methods(); public: virtual void update_property() override; @@ -607,7 +579,6 @@ class EditorPropertyProjection : public EditorProperty { protected: virtual void _set_read_only(bool p_read_only) override; void _notification(int p_what); - static void _bind_methods(); public: virtual void update_property() override; diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp index 9aa2390230f..d58d0520cc2 100644 --- a/editor/editor_properties_array_dict.cpp +++ b/editor/editor_properties_array_dict.cpp @@ -836,9 +836,6 @@ bool EditorPropertyArray::is_colored(ColorationMode p_mode) { return p_mode == COLORATION_CONTAINER_RESOURCE; } -void EditorPropertyArray::_bind_methods() { -} - EditorPropertyArray::EditorPropertyArray() { object.instantiate(); page_length = int(EDITOR_GET("interface/inspector/max_array_dictionary_items_per_page")); @@ -1166,9 +1163,6 @@ void EditorPropertyDictionary::_page_changed(int p_page) { update_property(); } -void EditorPropertyDictionary::_bind_methods() { -} - bool EditorPropertyDictionary::is_colored(ColorationMode p_mode) { return p_mode == COLORATION_CONTAINER_RESOURCE; } @@ -1385,9 +1379,6 @@ void EditorPropertyLocalizableString::_page_changed(int p_page) { update_property(); } -void EditorPropertyLocalizableString::_bind_methods() { -} - EditorPropertyLocalizableString::EditorPropertyLocalizableString() { object.instantiate(); page_length = int(EDITOR_GET("interface/inspector/max_array_dictionary_items_per_page")); diff --git a/editor/editor_properties_array_dict.h b/editor/editor_properties_array_dict.h index acde7667549..024c04956f9 100644 --- a/editor/editor_properties_array_dict.h +++ b/editor/editor_properties_array_dict.h @@ -150,7 +150,6 @@ protected: bool updating = false; bool dropping = false; - static void _bind_methods(); void _notification(int p_what); virtual void _add_element(); @@ -234,7 +233,6 @@ class EditorPropertyDictionary : public EditorProperty { void _object_id_selected(const StringName &p_property, ObjectID p_id); protected: - static void _bind_methods(); void _notification(int p_what); public: @@ -271,7 +269,6 @@ class EditorPropertyLocalizableString : public EditorProperty { void _object_id_selected(const StringName &p_property, ObjectID p_id); protected: - static void _bind_methods(); void _notification(int p_what); public: diff --git a/editor/export/export_template_manager.cpp b/editor/export/export_template_manager.cpp index a6f6c87ee10..0caf0ee0665 100644 --- a/editor/export/export_template_manager.cpp +++ b/editor/export/export_template_manager.cpp @@ -859,9 +859,6 @@ void ExportTemplateManager::_notification(int p_what) { } } -void ExportTemplateManager::_bind_methods() { -} - ExportTemplateManager::ExportTemplateManager() { set_title(TTR("Export Template Manager")); set_hide_on_ok(false); diff --git a/editor/export/export_template_manager.h b/editor/export/export_template_manager.h index a00d874580a..b1c5855878b 100644 --- a/editor/export/export_template_manager.h +++ b/editor/export/export_template_manager.h @@ -119,7 +119,6 @@ class ExportTemplateManager : public AcceptDialog { protected: void _notification(int p_what); - static void _bind_methods(); public: static String get_android_build_directory(const Ref &p_preset); diff --git a/editor/gui/editor_object_selector.cpp b/editor/gui/editor_object_selector.cpp index 5b303760b02..bfd7e18de1d 100644 --- a/editor/gui/editor_object_selector.cpp +++ b/editor/gui/editor_object_selector.cpp @@ -216,9 +216,6 @@ void EditorObjectSelector::_notification(int p_what) { } } -void EditorObjectSelector::_bind_methods() { -} - EditorObjectSelector::EditorObjectSelector(EditorSelectionHistory *p_history) { history = p_history; diff --git a/editor/gui/editor_object_selector.h b/editor/gui/editor_object_selector.h index 72ff285cf68..60d6df488b7 100644 --- a/editor/gui/editor_object_selector.h +++ b/editor/gui/editor_object_selector.h @@ -58,7 +58,6 @@ class EditorObjectSelector : public Button { protected: void _notification(int p_what); - static void _bind_methods(); public: virtual Size2 get_minimum_size() const override; diff --git a/editor/node_dock.cpp b/editor/node_dock.cpp index 0c79e5d747c..0da8d8291fe 100644 --- a/editor/node_dock.cpp +++ b/editor/node_dock.cpp @@ -48,9 +48,6 @@ void NodeDock::show_connections() { connections->show(); } -void NodeDock::_bind_methods() { -} - void NodeDock::_notification(int p_what) { switch (p_what) { case NOTIFICATION_ENTER_TREE: diff --git a/editor/node_dock.h b/editor/node_dock.h index e9dcc41d48c..adf378bd066 100644 --- a/editor/node_dock.h +++ b/editor/node_dock.h @@ -55,7 +55,6 @@ public: static NodeDock *get_singleton() { return singleton; } protected: - static void _bind_methods(); void _notification(int p_what); public: diff --git a/editor/plugins/abstract_polygon_2d_editor.cpp b/editor/plugins/abstract_polygon_2d_editor.cpp index f73c494b250..60d808952e0 100644 --- a/editor/plugins/abstract_polygon_2d_editor.cpp +++ b/editor/plugins/abstract_polygon_2d_editor.cpp @@ -620,9 +620,6 @@ void AbstractPolygon2DEditor::edit(Node *p_polygon) { canvas_item_editor->update_viewport(); } -void AbstractPolygon2DEditor::_bind_methods() { -} - void AbstractPolygon2DEditor::remove_point(const Vertex &p_vertex) { EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton(); Vector vertices = _get_polygon(p_vertex.polygon); diff --git a/editor/plugins/abstract_polygon_2d_editor.h b/editor/plugins/abstract_polygon_2d_editor.h index 42170d9ffd1..66d4e1b7ef0 100644 --- a/editor/plugins/abstract_polygon_2d_editor.h +++ b/editor/plugins/abstract_polygon_2d_editor.h @@ -109,7 +109,6 @@ protected: void _notification(int p_what); void _node_removed(Node *p_node); - static void _bind_methods(); void remove_point(const Vertex &p_vertex); Vertex get_active_point() const; diff --git a/editor/plugins/animation_tree_editor_plugin.cpp b/editor/plugins/animation_tree_editor_plugin.cpp index 757d410b788..7906b50c2c5 100644 --- a/editor/plugins/animation_tree_editor_plugin.cpp +++ b/editor/plugins/animation_tree_editor_plugin.cpp @@ -199,9 +199,6 @@ void AnimationTreeEditor::_notification(int p_what) { } } -void AnimationTreeEditor::_bind_methods() { -} - AnimationTreeEditor *AnimationTreeEditor::singleton = nullptr; void AnimationTreeEditor::add_plugin(AnimationTreeNodeEditorPlugin *p_editor) { diff --git a/editor/plugins/animation_tree_editor_plugin.h b/editor/plugins/animation_tree_editor_plugin.h index 8dc820695ae..a234af68742 100644 --- a/editor/plugins/animation_tree_editor_plugin.h +++ b/editor/plugins/animation_tree_editor_plugin.h @@ -72,7 +72,6 @@ class AnimationTreeEditor : public VBoxContainer { protected: void _notification(int p_what); void _node_removed(Node *p_node); - static void _bind_methods(); static AnimationTreeEditor *singleton; diff --git a/editor/plugins/bone_map_editor_plugin.cpp b/editor/plugins/bone_map_editor_plugin.cpp index c00436b01f8..015dfdbca58 100644 --- a/editor/plugins/bone_map_editor_plugin.cpp +++ b/editor/plugins/bone_map_editor_plugin.cpp @@ -252,9 +252,6 @@ StringName BonePicker::get_selected_bone() { return selected->get_text(0); } -void BonePicker::_bind_methods() { -} - void BonePicker::_notification(int p_what) { switch (p_what) { case NOTIFICATION_ENTER_TREE: { diff --git a/editor/plugins/bone_map_editor_plugin.h b/editor/plugins/bone_map_editor_plugin.h index f3aa2fc84df..988ad40ec46 100644 --- a/editor/plugins/bone_map_editor_plugin.h +++ b/editor/plugins/bone_map_editor_plugin.h @@ -122,8 +122,6 @@ public: protected: void _notification(int p_what); - static void _bind_methods(); - void _confirm(); private: diff --git a/editor/plugins/camera_3d_editor_plugin.cpp b/editor/plugins/camera_3d_editor_plugin.cpp index 62b40043c1b..f4116ed3647 100644 --- a/editor/plugins/camera_3d_editor_plugin.cpp +++ b/editor/plugins/camera_3d_editor_plugin.cpp @@ -46,9 +46,6 @@ void Camera3DEditor::_pressed() { Node3DEditor::get_singleton()->set_custom_camera(sn); } -void Camera3DEditor::_bind_methods() { -} - void Camera3DEditor::edit(Node *p_camera) { node = p_camera; diff --git a/editor/plugins/camera_3d_editor_plugin.h b/editor/plugins/camera_3d_editor_plugin.h index 2e4d8a1ee37..1c6838aa024 100644 --- a/editor/plugins/camera_3d_editor_plugin.h +++ b/editor/plugins/camera_3d_editor_plugin.h @@ -45,7 +45,6 @@ class Camera3DEditor : public Control { protected: void _node_removed(Node *p_node); - static void _bind_methods(); public: void edit(Node *p_camera); diff --git a/editor/plugins/cpu_particles_2d_editor_plugin.cpp b/editor/plugins/cpu_particles_2d_editor_plugin.cpp index 92c0fd847b6..4869a202d76 100644 --- a/editor/plugins/cpu_particles_2d_editor_plugin.cpp +++ b/editor/plugins/cpu_particles_2d_editor_plugin.cpp @@ -258,9 +258,6 @@ void CPUParticles2DEditorPlugin::_notification(int p_what) { } } -void CPUParticles2DEditorPlugin::_bind_methods() { -} - CPUParticles2DEditorPlugin::CPUParticles2DEditorPlugin() { particles = nullptr; diff --git a/editor/plugins/cpu_particles_2d_editor_plugin.h b/editor/plugins/cpu_particles_2d_editor_plugin.h index 4d59c9981e3..645e6d83450 100644 --- a/editor/plugins/cpu_particles_2d_editor_plugin.h +++ b/editor/plugins/cpu_particles_2d_editor_plugin.h @@ -79,7 +79,6 @@ class CPUParticles2DEditorPlugin : public EditorPlugin { protected: void _notification(int p_what); - static void _bind_methods(); public: virtual String get_name() const override { return "CPUParticles2D"; } diff --git a/editor/plugins/cpu_particles_3d_editor_plugin.cpp b/editor/plugins/cpu_particles_3d_editor_plugin.cpp index be2847d1d76..69f287c134f 100644 --- a/editor/plugins/cpu_particles_3d_editor_plugin.cpp +++ b/editor/plugins/cpu_particles_3d_editor_plugin.cpp @@ -157,9 +157,6 @@ void CPUParticles3DEditor::_generate_emission_points() { } } -void CPUParticles3DEditor::_bind_methods() { -} - CPUParticles3DEditor::CPUParticles3DEditor() { particles_editor_hb = memnew(HBoxContainer); Node3DEditor::get_singleton()->add_control_to_menu_panel(particles_editor_hb); diff --git a/editor/plugins/cpu_particles_3d_editor_plugin.h b/editor/plugins/cpu_particles_3d_editor_plugin.h index 99178b7fde7..2a1ea93ac8d 100644 --- a/editor/plugins/cpu_particles_3d_editor_plugin.h +++ b/editor/plugins/cpu_particles_3d_editor_plugin.h @@ -60,7 +60,6 @@ class CPUParticles3DEditor : public GPUParticles3DEditorBase { protected: void _notification(int p_notification); void _node_removed(Node *p_node); - static void _bind_methods(); public: void edit(CPUParticles3D *p_particles); diff --git a/editor/plugins/editor_plugin_settings.cpp b/editor/plugins/editor_plugin_settings.cpp index afc60b09d61..5949bc141f5 100644 --- a/editor/plugins/editor_plugin_settings.cpp +++ b/editor/plugins/editor_plugin_settings.cpp @@ -199,9 +199,6 @@ Vector EditorPluginSettings::_get_plugins(const String &p_dir) { return plugins; } -void EditorPluginSettings::_bind_methods() { -} - EditorPluginSettings::EditorPluginSettings() { ProjectSettings::get_singleton()->add_hidden_prefix("editor_plugins/"); diff --git a/editor/plugins/editor_plugin_settings.h b/editor/plugins/editor_plugin_settings.h index 5b470b3e583..ea7d0ea8b31 100644 --- a/editor/plugins/editor_plugin_settings.h +++ b/editor/plugins/editor_plugin_settings.h @@ -67,8 +67,6 @@ class EditorPluginSettings : public VBoxContainer { protected: void _notification(int p_what); - static void _bind_methods(); - public: void update_plugins(); diff --git a/editor/plugins/font_config_plugin.cpp b/editor/plugins/font_config_plugin.cpp index e6ce63fe36b..f48804cadfb 100644 --- a/editor/plugins/font_config_plugin.cpp +++ b/editor/plugins/font_config_plugin.cpp @@ -63,9 +63,6 @@ bool EditorPropertyFontMetaObject::_get(const StringName &p_name, Variant &r_ret return false; } -void EditorPropertyFontMetaObject::_bind_methods() { -} - void EditorPropertyFontMetaObject::set_dict(const Dictionary &p_dict) { dict = p_dict; } diff --git a/editor/plugins/font_config_plugin.h b/editor/plugins/font_config_plugin.h index 4e798fc3e8d..e83f29a77b8 100644 --- a/editor/plugins/font_config_plugin.h +++ b/editor/plugins/font_config_plugin.h @@ -46,7 +46,6 @@ class EditorPropertyFontMetaObject : public RefCounted { protected: bool _set(const StringName &p_name, const Variant &p_value); bool _get(const StringName &p_name, Variant &r_ret) const; - static void _bind_methods(); public: void set_dict(const Dictionary &p_dict); diff --git a/editor/plugins/gpu_particles_2d_editor_plugin.cpp b/editor/plugins/gpu_particles_2d_editor_plugin.cpp index b70c34b7857..1b68b55ff66 100644 --- a/editor/plugins/gpu_particles_2d_editor_plugin.cpp +++ b/editor/plugins/gpu_particles_2d_editor_plugin.cpp @@ -360,9 +360,6 @@ void GPUParticles2DEditorPlugin::_notification(int p_what) { } } -void GPUParticles2DEditorPlugin::_bind_methods() { -} - GPUParticles2DEditorPlugin::GPUParticles2DEditorPlugin() { particles = nullptr; diff --git a/editor/plugins/gpu_particles_2d_editor_plugin.h b/editor/plugins/gpu_particles_2d_editor_plugin.h index bb0ca5de3a8..658e4d87e5f 100644 --- a/editor/plugins/gpu_particles_2d_editor_plugin.h +++ b/editor/plugins/gpu_particles_2d_editor_plugin.h @@ -86,7 +86,6 @@ class GPUParticles2DEditorPlugin : public EditorPlugin { protected: void _notification(int p_what); - static void _bind_methods(); public: virtual String get_name() const override { return "GPUParticles2D"; } diff --git a/editor/plugins/gpu_particles_3d_editor_plugin.cpp b/editor/plugins/gpu_particles_3d_editor_plugin.cpp index 00c5332464a..4e9be0aa53e 100644 --- a/editor/plugins/gpu_particles_3d_editor_plugin.cpp +++ b/editor/plugins/gpu_particles_3d_editor_plugin.cpp @@ -198,9 +198,6 @@ void GPUParticles3DEditorBase::_node_selected(const NodePath &p_path) { emission_dialog->popup_centered(Size2(300, 130)); } -void GPUParticles3DEditorBase::_bind_methods() { -} - GPUParticles3DEditorBase::GPUParticles3DEditorBase() { emission_dialog = memnew(ConfirmationDialog); emission_dialog->set_title(TTR("Create Emitter")); @@ -402,9 +399,6 @@ void GPUParticles3DEditor::_generate_emission_points() { } } -void GPUParticles3DEditor::_bind_methods() { -} - GPUParticles3DEditor::GPUParticles3DEditor() { node = nullptr; particles_editor_hb = memnew(HBoxContainer); diff --git a/editor/plugins/gpu_particles_3d_editor_plugin.h b/editor/plugins/gpu_particles_3d_editor_plugin.h index 3b2ab2f8ca4..5f59f6dca78 100644 --- a/editor/plugins/gpu_particles_3d_editor_plugin.h +++ b/editor/plugins/gpu_particles_3d_editor_plugin.h @@ -62,8 +62,6 @@ protected: virtual void _generate_emission_points(){}; void _node_selected(const NodePath &p_path); - static void _bind_methods(); - public: GPUParticles3DEditorBase(); }; @@ -95,7 +93,6 @@ class GPUParticles3DEditor : public GPUParticles3DEditorBase { protected: void _notification(int p_notification); void _node_removed(Node *p_node); - static void _bind_methods(); public: void edit(GPUParticles3D *p_particles); diff --git a/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp b/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp index 25b076d0e55..c21a1b5dd66 100644 --- a/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp +++ b/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp @@ -175,9 +175,6 @@ void GPUParticlesCollisionSDF3DEditorPlugin::_sdf_save_path_and_bake(const Strin } } -void GPUParticlesCollisionSDF3DEditorPlugin::_bind_methods() { -} - GPUParticlesCollisionSDF3DEditorPlugin::GPUParticlesCollisionSDF3DEditorPlugin() { bake_hb = memnew(HBoxContainer); bake_hb->set_h_size_flags(Control::SIZE_EXPAND_FILL); diff --git a/editor/plugins/gpu_particles_collision_sdf_editor_plugin.h b/editor/plugins/gpu_particles_collision_sdf_editor_plugin.h index bba8bd25841..3e1dae77ea5 100644 --- a/editor/plugins/gpu_particles_collision_sdf_editor_plugin.h +++ b/editor/plugins/gpu_particles_collision_sdf_editor_plugin.h @@ -58,7 +58,6 @@ class GPUParticlesCollisionSDF3DEditorPlugin : public EditorPlugin { void _sdf_save_path_and_bake(const String &p_path); protected: - static void _bind_methods(); void _notification(int p_what); public: diff --git a/editor/plugins/input_event_editor_plugin.cpp b/editor/plugins/input_event_editor_plugin.cpp index 5a90d2de61a..30debfc14f3 100644 --- a/editor/plugins/input_event_editor_plugin.cpp +++ b/editor/plugins/input_event_editor_plugin.cpp @@ -33,9 +33,6 @@ #include "editor/event_listener_line_edit.h" #include "editor/input_event_configuration_dialog.h" -void InputEventConfigContainer::_bind_methods() { -} - void InputEventConfigContainer::_notification(int p_what) { switch (p_what) { case NOTIFICATION_ENTER_TREE: diff --git a/editor/plugins/input_event_editor_plugin.h b/editor/plugins/input_event_editor_plugin.h index 48c16a48071..276bb74f6be 100644 --- a/editor/plugins/input_event_editor_plugin.h +++ b/editor/plugins/input_event_editor_plugin.h @@ -51,7 +51,6 @@ class InputEventConfigContainer : public VBoxContainer { protected: void _notification(int p_what); - static void _bind_methods(); public: void set_event(const Ref &p_event); diff --git a/editor/plugins/mesh_library_editor_plugin.cpp b/editor/plugins/mesh_library_editor_plugin.cpp index 0b2549986c9..58cc6704757 100644 --- a/editor/plugins/mesh_library_editor_plugin.cpp +++ b/editor/plugins/mesh_library_editor_plugin.cpp @@ -242,9 +242,6 @@ void MeshLibraryEditor::_menu_cbk(int p_option) { } } -void MeshLibraryEditor::_bind_methods() { -} - MeshLibraryEditor::MeshLibraryEditor() { file = memnew(EditorFileDialog); file->set_file_mode(EditorFileDialog::FILE_MODE_OPEN_FILE); diff --git a/editor/plugins/mesh_library_editor_plugin.h b/editor/plugins/mesh_library_editor_plugin.h index 94f46beea1d..5a9e32178d3 100644 --- a/editor/plugins/mesh_library_editor_plugin.h +++ b/editor/plugins/mesh_library_editor_plugin.h @@ -68,9 +68,6 @@ class MeshLibraryEditor : public Control { static void _import_scene(Node *p_scene, Ref p_library, bool p_merge, bool p_apply_xforms); static void _import_scene_parse_node(Ref p_library, HashMap &p_mesh_instances, Node *p_node, bool p_merge, bool p_apply_xforms); -protected: - static void _bind_methods(); - public: MenuButton *get_menu_button() const { return menu; } diff --git a/editor/plugins/multimesh_editor_plugin.cpp b/editor/plugins/multimesh_editor_plugin.cpp index 3980f23c8a7..76ffdb02e19 100644 --- a/editor/plugins/multimesh_editor_plugin.cpp +++ b/editor/plugins/multimesh_editor_plugin.cpp @@ -266,9 +266,6 @@ void MultiMeshEditor::_browse(bool p_source) { std->popup_scenetree_dialog(browsed_node); } -void MultiMeshEditor::_bind_methods() { -} - MultiMeshEditor::MultiMeshEditor() { options = memnew(MenuButton); options->set_switch_on_hover(true); diff --git a/editor/plugins/multimesh_editor_plugin.h b/editor/plugins/multimesh_editor_plugin.h index 5051926c64f..3fe63bfa921 100644 --- a/editor/plugins/multimesh_editor_plugin.h +++ b/editor/plugins/multimesh_editor_plugin.h @@ -79,7 +79,6 @@ class MultiMeshEditor : public Control { protected: void _node_removed(Node *p_node); - static void _bind_methods(); public: void edit(MultiMeshInstance3D *p_multimesh); diff --git a/editor/plugins/physical_bone_3d_editor_plugin.cpp b/editor/plugins/physical_bone_3d_editor_plugin.cpp index b7c12ab5c03..d7e97014520 100644 --- a/editor/plugins/physical_bone_3d_editor_plugin.cpp +++ b/editor/plugins/physical_bone_3d_editor_plugin.cpp @@ -36,9 +36,6 @@ #include "scene/3d/physics/physical_bone_3d.h" #include "scene/gui/separator.h" -void PhysicalBone3DEditor::_bind_methods() { -} - void PhysicalBone3DEditor::_on_toggle_button_transform_joint(bool p_is_pressed) { _set_move_joint(); } diff --git a/editor/plugins/physical_bone_3d_editor_plugin.h b/editor/plugins/physical_bone_3d_editor_plugin.h index fb6f30cc577..b057644bb12 100644 --- a/editor/plugins/physical_bone_3d_editor_plugin.h +++ b/editor/plugins/physical_bone_3d_editor_plugin.h @@ -45,9 +45,6 @@ class PhysicalBone3DEditor : public Object { PhysicalBone3D *selected = nullptr; -protected: - static void _bind_methods(); - private: void _on_toggle_button_transform_joint(bool p_is_pressed); void _set_move_joint(); diff --git a/editor/plugins/root_motion_editor_plugin.cpp b/editor/plugins/root_motion_editor_plugin.cpp index 8b31aa92b34..cd422fc2915 100644 --- a/editor/plugins/root_motion_editor_plugin.cpp +++ b/editor/plugins/root_motion_editor_plugin.cpp @@ -193,9 +193,6 @@ void EditorPropertyRootMotion::_notification(int p_what) { } } -void EditorPropertyRootMotion::_bind_methods() { -} - EditorPropertyRootMotion::EditorPropertyRootMotion() { HBoxContainer *hbc = memnew(HBoxContainer); add_child(hbc); diff --git a/editor/plugins/root_motion_editor_plugin.h b/editor/plugins/root_motion_editor_plugin.h index 5befdb6006e..a3e90360aef 100644 --- a/editor/plugins/root_motion_editor_plugin.h +++ b/editor/plugins/root_motion_editor_plugin.h @@ -52,7 +52,6 @@ class EditorPropertyRootMotion : public EditorProperty { void _node_clear(); protected: - static void _bind_methods(); void _notification(int p_what); public: diff --git a/editor/plugins/shader_file_editor_plugin.cpp b/editor/plugins/shader_file_editor_plugin.cpp index 05919fb0f65..d732d51f692 100644 --- a/editor/plugins/shader_file_editor_plugin.cpp +++ b/editor/plugins/shader_file_editor_plugin.cpp @@ -218,9 +218,6 @@ void ShaderFileEditor::_editor_settings_changed() { } } -void ShaderFileEditor::_bind_methods() { -} - void ShaderFileEditor::edit(const Ref &p_shader) { if (p_shader.is_null()) { if (shader_file.is_valid()) { diff --git a/editor/plugins/shader_file_editor_plugin.h b/editor/plugins/shader_file_editor_plugin.h index 9a915513ef9..fea770b7e01 100644 --- a/editor/plugins/shader_file_editor_plugin.h +++ b/editor/plugins/shader_file_editor_plugin.h @@ -62,7 +62,6 @@ class ShaderFileEditor : public PanelContainer { protected: void _notification(int p_what); - static void _bind_methods(); public: static ShaderFileEditor *singleton; diff --git a/editor/plugins/skeleton_2d_editor_plugin.cpp b/editor/plugins/skeleton_2d_editor_plugin.cpp index 8308fe6d6ef..97c5c0c7dd1 100644 --- a/editor/plugins/skeleton_2d_editor_plugin.cpp +++ b/editor/plugins/skeleton_2d_editor_plugin.cpp @@ -90,9 +90,6 @@ void Skeleton2DEditor::_menu_option(int p_option) { } } -void Skeleton2DEditor::_bind_methods() { -} - Skeleton2DEditor::Skeleton2DEditor() { options = memnew(MenuButton); diff --git a/editor/plugins/skeleton_2d_editor_plugin.h b/editor/plugins/skeleton_2d_editor_plugin.h index 74fd59f1c41..89e2e5d0f25 100644 --- a/editor/plugins/skeleton_2d_editor_plugin.h +++ b/editor/plugins/skeleton_2d_editor_plugin.h @@ -57,7 +57,6 @@ class Skeleton2DEditor : public Control { protected: void _node_removed(Node *p_node); - static void _bind_methods(); public: void edit(Skeleton2D *p_sprite); diff --git a/editor/plugins/skeleton_ik_3d_editor_plugin.cpp b/editor/plugins/skeleton_ik_3d_editor_plugin.cpp index 1753df5cb7b..9b98b6ffa2e 100644 --- a/editor/plugins/skeleton_ik_3d_editor_plugin.cpp +++ b/editor/plugins/skeleton_ik_3d_editor_plugin.cpp @@ -73,9 +73,6 @@ void SkeletonIK3DEditorPlugin::make_visible(bool p_visible) { } } -void SkeletonIK3DEditorPlugin::_bind_methods() { -} - SkeletonIK3DEditorPlugin::SkeletonIK3DEditorPlugin() { play_btn = memnew(Button); play_btn->set_icon(EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("Play"), EditorStringName(EditorIcons))); diff --git a/editor/plugins/skeleton_ik_3d_editor_plugin.h b/editor/plugins/skeleton_ik_3d_editor_plugin.h index 2ef5467263b..95ab3696bef 100644 --- a/editor/plugins/skeleton_ik_3d_editor_plugin.h +++ b/editor/plugins/skeleton_ik_3d_editor_plugin.h @@ -45,9 +45,6 @@ class SkeletonIK3DEditorPlugin : public EditorPlugin { void _play(); -protected: - static void _bind_methods(); - public: virtual String get_name() const override { return "SkeletonIK3D"; } bool has_main_screen() const override { return false; } diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index 2da9d66d9a4..7961ec855bc 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -7653,9 +7653,6 @@ void EditorPropertyVisualShaderMode::set_option_button_clip(bool p_enable) { options->set_clip_text(p_enable); } -void EditorPropertyVisualShaderMode::_bind_methods() { -} - EditorPropertyVisualShaderMode::EditorPropertyVisualShaderMode() { options = memnew(OptionButton); options->set_clip_text(true); @@ -7787,9 +7784,6 @@ void VisualShaderNodePortPreview::_notification(int p_what) { } } -void VisualShaderNodePortPreview::_bind_methods() { -} - ////////////////////////////////// String VisualShaderConversionPlugin::converts_to() const { diff --git a/editor/plugins/visual_shader_editor_plugin.h b/editor/plugins/visual_shader_editor_plugin.h index a9826fd6178..75c9d97b7c8 100644 --- a/editor/plugins/visual_shader_editor_plugin.h +++ b/editor/plugins/visual_shader_editor_plugin.h @@ -630,9 +630,6 @@ class EditorPropertyVisualShaderMode : public EditorProperty { void _option_selected(int p_which); -protected: - static void _bind_methods(); - public: void setup(const Vector &p_options); virtual void update_property() override; @@ -658,7 +655,6 @@ class VisualShaderNodePortPreview : public Control { void _shader_changed(); //must regen protected: void _notification(int p_what); - static void _bind_methods(); public: virtual Size2 get_minimum_size() const override; diff --git a/editor/plugins/voxel_gi_editor_plugin.cpp b/editor/plugins/voxel_gi_editor_plugin.cpp index e7b2435567c..3e835d5cb69 100644 --- a/editor/plugins/voxel_gi_editor_plugin.cpp +++ b/editor/plugins/voxel_gi_editor_plugin.cpp @@ -177,9 +177,6 @@ void VoxelGIEditorPlugin::_voxel_gi_save_path_and_bake(const String &p_path) { } } -void VoxelGIEditorPlugin::_bind_methods() { -} - VoxelGIEditorPlugin::VoxelGIEditorPlugin() { bake_hb = memnew(HBoxContainer); bake_hb->set_h_size_flags(Control::SIZE_EXPAND_FILL); diff --git a/editor/plugins/voxel_gi_editor_plugin.h b/editor/plugins/voxel_gi_editor_plugin.h index 58ef22ddc6c..d09822dda61 100644 --- a/editor/plugins/voxel_gi_editor_plugin.h +++ b/editor/plugins/voxel_gi_editor_plugin.h @@ -58,7 +58,6 @@ class VoxelGIEditorPlugin : public EditorPlugin { void _voxel_gi_save_path_and_bake(const String &p_path); protected: - static void _bind_methods(); void _notification(int p_what); public: diff --git a/modules/fbx/fbx_document.cpp b/modules/fbx/fbx_document.cpp index b9d9ec7b6cf..4d3f7554c09 100644 --- a/modules/fbx/fbx_document.cpp +++ b/modules/fbx/fbx_document.cpp @@ -2114,9 +2114,6 @@ Error FBXDocument::_parse(Ref p_state, String p_path, Ref return OK; } -void FBXDocument::_bind_methods() { -} - Node *FBXDocument::generate_scene(Ref p_state, float p_bake_fps, bool p_trimming, bool p_remove_immutable_tracks) { Ref state = p_state; ERR_FAIL_COND_V(state.is_null(), nullptr); diff --git a/modules/fbx/fbx_document.h b/modules/fbx/fbx_document.h index 4a3bb176c2b..96f1905881b 100644 --- a/modules/fbx/fbx_document.h +++ b/modules/fbx/fbx_document.h @@ -61,9 +61,6 @@ public: PackedByteArray generate_buffer(Ref p_state) override; Error write_to_filesystem(Ref p_state, const String &p_path) override; -protected: - static void _bind_methods(); - private: String _get_texture_path(const String &p_base_directory, const String &p_source_file_path) const; void _process_uv_set(PackedVector2Array &uv_array); diff --git a/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp b/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp index 07faee3dfcd..676f764c110 100644 --- a/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp +++ b/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.cpp @@ -34,9 +34,6 @@ #include "scene/3d/mesh_instance_3d.h" #include "scene/resources/3d/importer_mesh.h" -void GLTFDocumentExtensionConvertImporterMesh::_bind_methods() { -} - void GLTFDocumentExtensionConvertImporterMesh::_copy_meta(Object *p_src_object, Object *p_dst_object) { List meta_list; p_src_object->get_meta_list(&meta_list); diff --git a/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.h b/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.h index ca10444eb57..b216a47a7fc 100644 --- a/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.h +++ b/modules/gltf/extensions/gltf_document_extension_convert_importer_mesh.h @@ -37,7 +37,6 @@ class GLTFDocumentExtensionConvertImporterMesh : public GLTFDocumentExtension { GDCLASS(GLTFDocumentExtensionConvertImporterMesh, GLTFDocumentExtension); protected: - static void _bind_methods(); static void _copy_meta(Object *p_src_object, Object *p_dst_object); public: diff --git a/modules/navigation/editor/navigation_mesh_editor_plugin.cpp b/modules/navigation/editor/navigation_mesh_editor_plugin.cpp index d07d3cdff56..f37ed9b1685 100644 --- a/modules/navigation/editor/navigation_mesh_editor_plugin.cpp +++ b/modules/navigation/editor/navigation_mesh_editor_plugin.cpp @@ -126,9 +126,6 @@ void NavigationMeshEditor::edit(NavigationRegion3D *p_nav_region) { node = p_nav_region; } -void NavigationMeshEditor::_bind_methods() { -} - NavigationMeshEditor::NavigationMeshEditor() { bake_hbox = memnew(HBoxContainer); diff --git a/modules/navigation/editor/navigation_mesh_editor_plugin.h b/modules/navigation/editor/navigation_mesh_editor_plugin.h index 6114c62ebfd..f5a471d5318 100644 --- a/modules/navigation/editor/navigation_mesh_editor_plugin.h +++ b/modules/navigation/editor/navigation_mesh_editor_plugin.h @@ -60,7 +60,6 @@ class NavigationMeshEditor : public Control { protected: void _node_removed(Node *p_node); - static void _bind_methods(); void _notification(int p_what); public: diff --git a/modules/openxr/editor/openxr_select_runtime.cpp b/modules/openxr/editor/openxr_select_runtime.cpp index 026797c6e01..4d95b079e22 100644 --- a/modules/openxr/editor/openxr_select_runtime.cpp +++ b/modules/openxr/editor/openxr_select_runtime.cpp @@ -35,9 +35,6 @@ #include "editor/editor_settings.h" #include "editor/editor_string_names.h" -void OpenXRSelectRuntime::_bind_methods() { -} - void OpenXRSelectRuntime::_update_items() { Ref da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM); OS *os = OS::get_singleton(); diff --git a/modules/openxr/editor/openxr_select_runtime.h b/modules/openxr/editor/openxr_select_runtime.h index 60b5137f67f..9a3487439cb 100644 --- a/modules/openxr/editor/openxr_select_runtime.h +++ b/modules/openxr/editor/openxr_select_runtime.h @@ -40,7 +40,6 @@ public: OpenXRSelectRuntime(); protected: - static void _bind_methods(); void _notification(int p_notification); private: diff --git a/scene/3d/occluder_instance_3d.cpp b/scene/3d/occluder_instance_3d.cpp index 150771545b4..6982df12f67 100644 --- a/scene/3d/occluder_instance_3d.cpp +++ b/scene/3d/occluder_instance_3d.cpp @@ -129,9 +129,6 @@ void Occluder3D::_notification(int p_what) { } } -void Occluder3D::_bind_methods() { -} - Occluder3D::Occluder3D() { occluder = RS::get_singleton()->occluder_create(); } diff --git a/scene/3d/occluder_instance_3d.h b/scene/3d/occluder_instance_3d.h index 91445710b35..62e9478527c 100644 --- a/scene/3d/occluder_instance_3d.h +++ b/scene/3d/occluder_instance_3d.h @@ -49,7 +49,6 @@ protected: void _update(); virtual void _update_arrays(PackedVector3Array &r_vertices, PackedInt32Array &r_indices) = 0; - static void _bind_methods(); void _notification(int p_what); public: diff --git a/scene/animation/animation_blend_tree.cpp b/scene/animation/animation_blend_tree.cpp index e4baae1afbc..cdc85d2b2d2 100644 --- a/scene/animation/animation_blend_tree.cpp +++ b/scene/animation/animation_blend_tree.cpp @@ -754,9 +754,6 @@ AnimationNode::NodeTimeInfo AnimationNodeAdd2::_process(const AnimationMixer::Pl return nti; } -void AnimationNodeAdd2::_bind_methods() { -} - AnimationNodeAdd2::AnimationNodeAdd2() { add_input("in"); add_input("add"); @@ -800,9 +797,6 @@ AnimationNode::NodeTimeInfo AnimationNodeAdd3::_process(const AnimationMixer::Pl return nti; } -void AnimationNodeAdd3::_bind_methods() { -} - AnimationNodeAdd3::AnimationNodeAdd3() { add_input("-add"); add_input("in"); @@ -845,9 +839,6 @@ bool AnimationNodeBlend2::has_filter() const { return true; } -void AnimationNodeBlend2::_bind_methods() { -} - AnimationNodeBlend2::AnimationNodeBlend2() { add_input("in"); add_input("blend"); @@ -887,9 +878,6 @@ AnimationNode::NodeTimeInfo AnimationNodeBlend3::_process(const AnimationMixer:: return amount > 0.5 ? nti2 : (amount < -0.5 ? nti0 : nti1); // Hacky but good enough. } -void AnimationNodeBlend3::_bind_methods() { -} - AnimationNodeBlend3::AnimationNodeBlend3() { add_input("-blend"); add_input("in"); @@ -932,9 +920,6 @@ AnimationNode::NodeTimeInfo AnimationNodeSub2::_process(const AnimationMixer::Pl return blend_input(0, pi, FILTER_IGNORE, sync, p_test_only); } -void AnimationNodeSub2::_bind_methods() { -} - AnimationNodeSub2::AnimationNodeSub2() { add_input("in"); add_input("sub"); @@ -972,9 +957,6 @@ AnimationNode::NodeTimeInfo AnimationNodeTimeScale::_process(const AnimationMixe return blend_input(0, pi, FILTER_IGNORE, true, p_test_only); } -void AnimationNodeTimeScale::_bind_methods() { -} - AnimationNodeTimeScale::AnimationNodeTimeScale() { add_input("in"); } @@ -1014,9 +996,6 @@ AnimationNode::NodeTimeInfo AnimationNodeTimeSeek::_process(const AnimationMixer return blend_input(0, pi, FILTER_IGNORE, true, p_test_only); } -void AnimationNodeTimeSeek::_bind_methods() { -} - AnimationNodeTimeSeek::AnimationNodeTimeSeek() { add_input("in"); } diff --git a/scene/animation/animation_blend_tree.h b/scene/animation/animation_blend_tree.h index c7ef7ed6248..2add35d0098 100644 --- a/scene/animation/animation_blend_tree.h +++ b/scene/animation/animation_blend_tree.h @@ -200,9 +200,6 @@ class AnimationNodeAdd2 : public AnimationNodeSync { StringName add_amount = PNAME("add_amount"); -protected: - static void _bind_methods(); - public: void get_parameter_list(List *r_list) const override; virtual Variant get_parameter_default_value(const StringName &p_parameter) const override; @@ -220,9 +217,6 @@ class AnimationNodeAdd3 : public AnimationNodeSync { StringName add_amount = PNAME("add_amount"); -protected: - static void _bind_methods(); - public: void get_parameter_list(List *r_list) const override; virtual Variant get_parameter_default_value(const StringName &p_parameter) const override; @@ -240,9 +234,6 @@ class AnimationNodeBlend2 : public AnimationNodeSync { StringName blend_amount = PNAME("blend_amount"); -protected: - static void _bind_methods(); - public: virtual void get_parameter_list(List *r_list) const override; virtual Variant get_parameter_default_value(const StringName &p_parameter) const override; @@ -259,9 +250,6 @@ class AnimationNodeBlend3 : public AnimationNodeSync { StringName blend_amount = PNAME("blend_amount"); -protected: - static void _bind_methods(); - public: virtual void get_parameter_list(List *r_list) const override; virtual Variant get_parameter_default_value(const StringName &p_parameter) const override; @@ -277,9 +265,6 @@ class AnimationNodeSub2 : public AnimationNodeSync { StringName sub_amount = PNAME("sub_amount"); -protected: - static void _bind_methods(); - public: void get_parameter_list(List *r_list) const override; virtual Variant get_parameter_default_value(const StringName &p_parameter) const override; @@ -297,9 +282,6 @@ class AnimationNodeTimeScale : public AnimationNode { StringName scale = PNAME("scale"); -protected: - static void _bind_methods(); - public: virtual void get_parameter_list(List *r_list) const override; virtual Variant get_parameter_default_value(const StringName &p_parameter) const override; @@ -316,9 +298,6 @@ class AnimationNodeTimeSeek : public AnimationNode { StringName seek_pos_request = PNAME("seek_request"); -protected: - static void _bind_methods(); - public: virtual void get_parameter_list(List *r_list) const override; virtual Variant get_parameter_default_value(const StringName &p_parameter) const override; diff --git a/servers/audio/audio_stream.cpp b/servers/audio/audio_stream.cpp index 7ab150c1413..e2c86869116 100644 --- a/servers/audio/audio_stream.cpp +++ b/servers/audio/audio_stream.cpp @@ -342,12 +342,6 @@ bool AudioStreamMicrophone::is_monophonic() const { return true; } -void AudioStreamMicrophone::_bind_methods() { -} - -AudioStreamMicrophone::AudioStreamMicrophone() { -} - int AudioStreamPlaybackMicrophone::_mix_internal(AudioFrame *p_buffer, int p_frames) { AudioDriver::get_singleton()->lock(); diff --git a/servers/audio/audio_stream.h b/servers/audio/audio_stream.h index 0ca4777d5c4..d02dc6aae7d 100644 --- a/servers/audio/audio_stream.h +++ b/servers/audio/audio_stream.h @@ -219,9 +219,6 @@ class AudioStreamMicrophone : public AudioStream { HashSet playbacks; -protected: - static void _bind_methods(); - public: virtual Ref instantiate_playback() override; virtual String get_stream_name() const override; @@ -229,8 +226,6 @@ public: virtual double get_length() const override; //if supported, otherwise return 0 virtual bool is_monophonic() const override; - - AudioStreamMicrophone(); }; class AudioStreamPlaybackMicrophone : public AudioStreamPlaybackResampled { diff --git a/servers/rendering/renderer_rd/storage_rd/render_data_rd.cpp b/servers/rendering/renderer_rd/storage_rd/render_data_rd.cpp index ac4fbba75b0..ddc4d092790 100644 --- a/servers/rendering/renderer_rd/storage_rd/render_data_rd.cpp +++ b/servers/rendering/renderer_rd/storage_rd/render_data_rd.cpp @@ -30,9 +30,6 @@ #include "render_data_rd.h" -void RenderDataRD::_bind_methods() { -} - Ref RenderDataRD::get_render_scene_buffers() const { return render_buffers; } diff --git a/servers/rendering/renderer_rd/storage_rd/render_data_rd.h b/servers/rendering/renderer_rd/storage_rd/render_data_rd.h index 3cd397b8ed6..6ebb85442b1 100644 --- a/servers/rendering/renderer_rd/storage_rd/render_data_rd.h +++ b/servers/rendering/renderer_rd/storage_rd/render_data_rd.h @@ -38,9 +38,6 @@ class RenderDataRD : public RenderData { GDCLASS(RenderDataRD, RenderData); -protected: - static void _bind_methods(); - public: // Access methods to expose data externally virtual Ref get_render_scene_buffers() const override; diff --git a/servers/rendering/renderer_rd/storage_rd/render_scene_data_rd.cpp b/servers/rendering/renderer_rd/storage_rd/render_scene_data_rd.cpp index ba8aafda6db..148a556b461 100644 --- a/servers/rendering/renderer_rd/storage_rd/render_scene_data_rd.cpp +++ b/servers/rendering/renderer_rd/storage_rd/render_scene_data_rd.cpp @@ -34,9 +34,6 @@ #include "servers/rendering/renderer_rd/storage_rd/texture_storage.h" #include "servers/rendering/rendering_server_default.h" -void RenderSceneDataRD::_bind_methods() { -} - Transform3D RenderSceneDataRD::get_cam_transform() const { return cam_transform; } diff --git a/servers/rendering/renderer_rd/storage_rd/render_scene_data_rd.h b/servers/rendering/renderer_rd/storage_rd/render_scene_data_rd.h index 5579a977921..b2c93acd44d 100644 --- a/servers/rendering/renderer_rd/storage_rd/render_scene_data_rd.h +++ b/servers/rendering/renderer_rd/storage_rd/render_scene_data_rd.h @@ -95,8 +95,6 @@ public: virtual RID get_uniform_buffer() const override; private: - static void _bind_methods(); - RID uniform_buffer; // loaded into this uniform buffer (supplied externally) // This struct is loaded into Set 1 - Binding 0, populated at start of rendering a frame, must match with shader code