1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Remove unused variable PopupMenu::parent_rect

This private variable is not read anywhere.
Remove it and all places, where it is set.
This commit is contained in:
Markus Sauermann
2023-06-15 11:42:28 +02:00
parent 33957aee69
commit 840e2b14f3
5 changed files with 0 additions and 10 deletions

View File

@@ -106,7 +106,6 @@ void MenuButton::show_popup() {
gp.x += size.width - popup->get_size().width;
}
popup->set_position(gp);
popup->set_parent_rect(Rect2(Point2(gp - popup->get_position()), size));
// If not triggered by the mouse, start the popup with its first enabled item focused.
if (!_was_pressed_by_mouse()) {