1
0
Fork 0
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 in d522a6f and 1e604b7, their purpose snuffed out in 11bb88f
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:
thankyouverycool 2022-12-11 13:23:31 -05:00 committed by Andreas Kling
parent d80c520a92
commit e06f9174a1
Notes: sideshowbarker 2024-07-17 03:25:24 +09:00

View file

@ -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());