diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-03 11:17:21 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-03 11:17:47 +0100 |
commit | 9c7798096550e1a894c7e110a65cfb0ab2776475 (patch) | |
tree | 11e160adb28f923145c29605dd15853d24d5fb00 /Userland/Libraries | |
parent | ac59903c89708e19c837fe6cdec4c450b78d2a98 (diff) | |
download | serenity-9c7798096550e1a894c7e110a65cfb0ab2776475.zip |
Everywhere: Remove some bitrotted "#if 0" blocks
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGUI/TreeView.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Userland/Libraries/LibGUI/TreeView.cpp b/Userland/Libraries/LibGUI/TreeView.cpp index 00f4f9fd61..be91aaaf61 100644 --- a/Userland/Libraries/LibGUI/TreeView.cpp +++ b/Userland/Libraries/LibGUI/TreeView.cpp @@ -418,19 +418,7 @@ void TreeView::did_update_selection() auto index = selection().first(); if (!index.is_valid()) return; -#if 0 - bool opened_any = false; - for (auto current = index; current.is_valid(); current = current.parent()) { - auto& metadata_for_ancestor = ensure_metadata_for_index(current); - if (!metadata_for_ancestor.open) { - metadata_for_ancestor.open = true; - opened_any = true; - } - } - if (opened_any) - update_content_size(); - update(); -#endif + if (activates_on_selection()) activate(index); } |