From 4486e5b26d23b3bfafd3978c70df68ad9e2c3063 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 27 Jul 2021 15:29:09 +0200 Subject: [PATCH] LibGUI: Remove some unused code in GUI::TreeView --- Userland/Libraries/LibGUI/TreeView.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Userland/Libraries/LibGUI/TreeView.cpp b/Userland/Libraries/LibGUI/TreeView.cpp index 21ab9dd632..021097f556 100644 --- a/Userland/Libraries/LibGUI/TreeView.cpp +++ b/Userland/Libraries/LibGUI/TreeView.cpp @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include @@ -254,17 +253,13 @@ void TreeView::paint_event(PaintEvent& event) text_color = is_focused() ? palette().selection_text() : palette().inactive_selection_text(); Color background_color; - Color key_column_background_color; if (is_selected_row) { background_color = is_focused() ? palette().selection() : palette().inactive_selection(); - key_column_background_color = is_focused() ? palette().selection() : palette().inactive_selection(); } else { if (alternating_row_colors() && (painted_row_index % 2)) { background_color = Color(220, 220, 220); - key_column_background_color = Color(200, 200, 200); } else { background_color = palette().color(background_role()); - key_column_background_color = Color(220, 220, 220); } }