Merge pull request #71936 from akien-mga/remove-some-unused-signals
Remove some unused signals
This commit is contained in:
commit
d9ade633b3
@ -410,11 +410,6 @@
|
|||||||
Emitted when an item is collapsed by a click on the folding arrow.
|
Emitted when an item is collapsed by a click on the folding arrow.
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="item_custom_button_pressed">
|
|
||||||
<description>
|
|
||||||
Emitted when a custom button is pressed (i.e. in a [constant TreeItem.CELL_MODE_CUSTOM] mode cell).
|
|
||||||
</description>
|
|
||||||
</signal>
|
|
||||||
<signal name="item_edited">
|
<signal name="item_edited">
|
||||||
<description>
|
<description>
|
||||||
Emitted when an item is edited.
|
Emitted when an item is edited.
|
||||||
|
@ -614,6 +614,12 @@
|
|||||||
This signal can be used to handle window closing, e.g. by connecting it to [method hide].
|
This signal can be used to handle window closing, e.g. by connecting it to [method hide].
|
||||||
</description>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
|
<signal name="dpi_changed">
|
||||||
|
<description>
|
||||||
|
Emitted when the [Window]'s DPI changes as a result of OS-level changes (e.g. moving the window from a Retina display to a lower resolution one).
|
||||||
|
[b]Note:[/b] Only implemented on macOS.
|
||||||
|
</description>
|
||||||
|
</signal>
|
||||||
<signal name="files_dropped">
|
<signal name="files_dropped">
|
||||||
<param index="0" name="files" type="PackedStringArray" />
|
<param index="0" name="files" type="PackedStringArray" />
|
||||||
<description>
|
<description>
|
||||||
|
@ -2986,7 +2986,6 @@ bool AnimationTrackEdit::can_drop_data(const Point2 &p_point, const Variant &p_d
|
|||||||
}
|
}
|
||||||
|
|
||||||
const_cast<AnimationTrackEdit *>(this)->queue_redraw();
|
const_cast<AnimationTrackEdit *>(this)->queue_redraw();
|
||||||
const_cast<AnimationTrackEdit *>(this)->emit_signal(SNAME("drop_attempted"), track);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -670,7 +670,6 @@ void FindReplaceBar::set_text_edit(CodeTextEditor *p_text_editor) {
|
|||||||
void FindReplaceBar::_bind_methods() {
|
void FindReplaceBar::_bind_methods() {
|
||||||
ClassDB::bind_method("_search_current", &FindReplaceBar::search_current);
|
ClassDB::bind_method("_search_current", &FindReplaceBar::search_current);
|
||||||
|
|
||||||
ADD_SIGNAL(MethodInfo("search"));
|
|
||||||
ADD_SIGNAL(MethodInfo("error"));
|
ADD_SIGNAL(MethodInfo("error"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2448,10 +2448,6 @@ void FindBar::_notification(int p_what) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FindBar::_bind_methods() {
|
|
||||||
ADD_SIGNAL(MethodInfo("search"));
|
|
||||||
}
|
|
||||||
|
|
||||||
void FindBar::set_rich_text_label(RichTextLabel *p_rich_text_label) {
|
void FindBar::set_rich_text_label(RichTextLabel *p_rich_text_label) {
|
||||||
rich_text_label = p_rich_text_label;
|
rich_text_label = p_rich_text_label;
|
||||||
}
|
}
|
||||||
|
@ -72,8 +72,6 @@ protected:
|
|||||||
|
|
||||||
bool _search(bool p_search_previous = false);
|
bool _search(bool p_search_previous = false);
|
||||||
|
|
||||||
static void _bind_methods();
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void set_rich_text_label(RichTextLabel *p_rich_text_label);
|
void set_rich_text_label(RichTextLabel *p_rich_text_label);
|
||||||
|
|
||||||
|
@ -360,11 +360,6 @@ void EditorLog::_reset_message_counts() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorLog::_bind_methods() {
|
|
||||||
ADD_SIGNAL(MethodInfo("clear_request"));
|
|
||||||
ADD_SIGNAL(MethodInfo("copy_request"));
|
|
||||||
}
|
|
||||||
|
|
||||||
EditorLog::EditorLog() {
|
EditorLog::EditorLog() {
|
||||||
save_state_timer = memnew(Timer);
|
save_state_timer = memnew(Timer);
|
||||||
save_state_timer->set_wait_time(2);
|
save_state_timer->set_wait_time(2);
|
||||||
|
@ -178,7 +178,6 @@ private:
|
|||||||
void _update_theme();
|
void _update_theme();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void _bind_methods();
|
|
||||||
void _notification(int p_what);
|
void _notification(int p_what);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -6474,7 +6474,6 @@ void EditorNode::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("get_gui_base"), &EditorNode::get_gui_base);
|
ClassDB::bind_method(D_METHOD("get_gui_base"), &EditorNode::get_gui_base);
|
||||||
|
|
||||||
ADD_SIGNAL(MethodInfo("play_pressed"));
|
ADD_SIGNAL(MethodInfo("play_pressed"));
|
||||||
ADD_SIGNAL(MethodInfo("pause_pressed"));
|
|
||||||
ADD_SIGNAL(MethodInfo("stop_pressed"));
|
ADD_SIGNAL(MethodInfo("stop_pressed"));
|
||||||
ADD_SIGNAL(MethodInfo("request_help_search"));
|
ADD_SIGNAL(MethodInfo("request_help_search"));
|
||||||
ADD_SIGNAL(MethodInfo("script_add_function_request", PropertyInfo(Variant::OBJECT, "obj"), PropertyInfo(Variant::STRING, "function"), PropertyInfo(Variant::PACKED_STRING_ARRAY, "args")));
|
ADD_SIGNAL(MethodInfo("script_add_function_request", PropertyInfo(Variant::OBJECT, "obj"), PropertyInfo(Variant::STRING, "function"), PropertyInfo(Variant::PACKED_STRING_ARRAY, "args")));
|
||||||
|
@ -128,7 +128,6 @@ void WebRTCMultiplayerPeer::poll() {
|
|||||||
// Server connected.
|
// Server connected.
|
||||||
connection_status = CONNECTION_CONNECTED;
|
connection_status = CONNECTION_CONNECTED;
|
||||||
emit_signal(SNAME("peer_connected"), TARGET_PEER_SERVER);
|
emit_signal(SNAME("peer_connected"), TARGET_PEER_SERVER);
|
||||||
emit_signal(SNAME("connection_succeeded"));
|
|
||||||
} else {
|
} else {
|
||||||
emit_signal(SNAME("peer_connected"), E);
|
emit_signal(SNAME("peer_connected"), E);
|
||||||
}
|
}
|
||||||
|
@ -237,7 +237,6 @@ void WebSocketMultiplayerPeer::_poll_client() {
|
|||||||
}
|
}
|
||||||
connection_status = CONNECTION_CONNECTED;
|
connection_status = CONNECTION_CONNECTED;
|
||||||
emit_signal("peer_connected", 1);
|
emit_signal("peer_connected", 1);
|
||||||
emit_signal("connection_succeeded");
|
|
||||||
} else {
|
} else {
|
||||||
return; // Still waiting for an ID.
|
return; // Still waiting for an ID.
|
||||||
}
|
}
|
||||||
|
@ -5256,7 +5256,6 @@ void Tree::_bind_methods() {
|
|||||||
ADD_SIGNAL(MethodInfo("empty_clicked", PropertyInfo(Variant::VECTOR2, "position"), PropertyInfo(Variant::INT, "mouse_button_index")));
|
ADD_SIGNAL(MethodInfo("empty_clicked", PropertyInfo(Variant::VECTOR2, "position"), PropertyInfo(Variant::INT, "mouse_button_index")));
|
||||||
ADD_SIGNAL(MethodInfo("item_edited"));
|
ADD_SIGNAL(MethodInfo("item_edited"));
|
||||||
ADD_SIGNAL(MethodInfo("custom_item_clicked", PropertyInfo(Variant::INT, "mouse_button_index")));
|
ADD_SIGNAL(MethodInfo("custom_item_clicked", PropertyInfo(Variant::INT, "mouse_button_index")));
|
||||||
ADD_SIGNAL(MethodInfo("item_custom_button_pressed"));
|
|
||||||
ADD_SIGNAL(MethodInfo("item_icon_double_clicked"));
|
ADD_SIGNAL(MethodInfo("item_icon_double_clicked"));
|
||||||
ADD_SIGNAL(MethodInfo("item_collapsed", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "TreeItem")));
|
ADD_SIGNAL(MethodInfo("item_collapsed", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "TreeItem")));
|
||||||
ADD_SIGNAL(MethodInfo("check_propagated_to_item", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "TreeItem"), PropertyInfo(Variant::INT, "column")));
|
ADD_SIGNAL(MethodInfo("check_propagated_to_item", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "TreeItem"), PropertyInfo(Variant::INT, "column")));
|
||||||
|
@ -2344,6 +2344,7 @@ void Window::_bind_methods() {
|
|||||||
ADD_SIGNAL(MethodInfo("visibility_changed"));
|
ADD_SIGNAL(MethodInfo("visibility_changed"));
|
||||||
ADD_SIGNAL(MethodInfo("about_to_popup"));
|
ADD_SIGNAL(MethodInfo("about_to_popup"));
|
||||||
ADD_SIGNAL(MethodInfo("theme_changed"));
|
ADD_SIGNAL(MethodInfo("theme_changed"));
|
||||||
|
ADD_SIGNAL(MethodInfo("dpi_changed"));
|
||||||
ADD_SIGNAL(MethodInfo("titlebar_changed"));
|
ADD_SIGNAL(MethodInfo("titlebar_changed"));
|
||||||
|
|
||||||
BIND_CONSTANT(NOTIFICATION_VISIBILITY_CHANGED);
|
BIND_CONSTANT(NOTIFICATION_VISIBILITY_CHANGED);
|
||||||
|
@ -152,7 +152,6 @@ void BoneMap::_validate_bone_map() {
|
|||||||
} else {
|
} else {
|
||||||
bone_map.clear();
|
bone_map.clear();
|
||||||
}
|
}
|
||||||
emit_signal("retarget_option_updated");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BoneMap::_bind_methods() {
|
void BoneMap::_bind_methods() {
|
||||||
|
Loading…
Reference in New Issue
Block a user