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

@ -98,7 +98,6 @@ class PopupMenu : public Popup {
bool during_grabbed_click = false;
int mouse_over = -1;
int submenu_over = -1;
Rect2 parent_rect;
String _get_accel_text(const Item &p_item) const;
int _get_mouse_over(const Point2 &p_over) const;
virtual Size2 _get_contents_minimum_size() const override;
@ -292,8 +291,6 @@ public:
void clear();
void set_parent_rect(const Rect2 &p_rect);
virtual String get_tooltip(const Point2 &p_pos) const;
void add_autohide_area(const Rect2 &p_area);