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

@ -131,7 +131,6 @@ void MenuBar::_open_popup(int p_index, bool p_focus_item) {
screen_pos.x += screen_size.x - pm->get_size().width;
}
pm->set_position(screen_pos);
pm->set_parent_rect(Rect2(Point2(screen_pos - pm->get_position()), Size2(screen_size.x, screen_pos.y)));
pm->popup();
if (p_focus_item) {