Skip to content

Commit

Permalink
Remove empty bind_methods()
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Aug 15, 2024
1 parent 33c30b9 commit 065dd09
Show file tree
Hide file tree
Showing 76 changed files with 0 additions and 347 deletions.
6 changes: 0 additions & 6 deletions editor/animation_track_editor_plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down Expand Up @@ -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));
}
Expand Down
6 changes: 0 additions & 6 deletions editor/animation_track_editor_plugins.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<InputEvent> &p_event) override;

Expand Down
9 changes: 0 additions & 9 deletions editor/dependency_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -353,9 +350,6 @@ void DependencyEditorOwners::_file_option(int p_option) {
}
}

void DependencyEditorOwners::_bind_methods() {
}

void DependencyEditorOwners::_fill_owners(EditorFileSystemDirectory *efsd) {
if (!efsd) {
return;
Expand Down Expand Up @@ -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);
Expand Down
5 changes: 0 additions & 5 deletions editor/dependency_editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ class DependencyEditor : public AcceptDialog {

void _update_file();

protected:
static void _bind_methods();

public:
void edit(const String &p_path);
DependencyEditor();
Expand All @@ -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);
Expand Down Expand Up @@ -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();
Expand Down
3 changes: 0 additions & 3 deletions editor/editor_asset_installer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,9 +659,6 @@ void EditorAssetInstaller::_notification(int p_what) {
}
}

void EditorAssetInstaller::_bind_methods() {
}

EditorAssetInstaller::EditorAssetInstaller() {
VBoxContainer *vb = memnew(VBoxContainer);
add_child(vb);
Expand Down
1 change: 0 additions & 1 deletion editor/editor_asset_installer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
75 changes: 0 additions & 75 deletions editor/editor_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -343,9 +337,6 @@ void EditorPropertyTextEnum::setup(const Vector<String> &p_options, bool p_strin
}
}

void EditorPropertyTextEnum::_bind_methods() {
}

void EditorPropertyTextEnum::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_ENTER_TREE:
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -637,9 +622,6 @@ void EditorPropertyClassName::_dialog_created() {
update_property();
}

void EditorPropertyClassName::_bind_methods() {
}

EditorPropertyClassName::EditorPropertyClassName() {
property = memnew(Button);
property->set_clip_text(true);
Expand Down Expand Up @@ -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"));
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -804,9 +780,6 @@ void EditorPropertyFlags::setup(const Vector<String> &p_options) {
}
}

void EditorPropertyFlags::_bind_methods() {
}

EditorPropertyFlags::EditorPropertyFlags() {
vbox = memnew(VBoxContainer);
add_child(vbox);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
Loading

0 comments on commit 065dd09

Please sign in to comment.