mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
WindowServer: Remove unused bools in Menu::draw()
Added ind522a6f
and1e604b7
, their purpose snuffed out in11bb88f
like the faint pulse of a pleading candle, two lives of short excess, doomed to itemize their sins to no effect and for all eternity...
This commit is contained in:
parent
d80c520a92
commit
e06f9174a1
1 changed files with 0 additions and 9 deletions
|
@ -202,15 +202,6 @@ void Menu::draw()
|
|||
painter.draw_rect(rect, Color::Black);
|
||||
painter.fill_rect(rect.shrunken(2, 2), palette.menu_base());
|
||||
|
||||
bool has_checkable_items = false;
|
||||
bool has_items_with_icon = false;
|
||||
for (auto& item : m_items) {
|
||||
if (!item.is_visible())
|
||||
continue;
|
||||
has_checkable_items = has_checkable_items | item.is_checkable();
|
||||
has_items_with_icon = has_items_with_icon | !!item.icon();
|
||||
}
|
||||
|
||||
// Draw the stripe first, which may extend outside of individual items. We can
|
||||
// skip this step when painting an individual item since we're drawing all of them
|
||||
painter.fill_rect(stripe_rect(), palette.menu_stripe());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue