mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09: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
Notes:
sideshowbarker
2024-07-17 03:25:24 +09:00
Author: https://github.com/thankyouverycool
Commit: e06f9174a1
Pull-request: https://github.com/SerenityOS/serenity/pull/16431
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