You've already forked godot
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user