mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +00:00
Everywhere: Remove some bitrotted "#if 0" blocks
This commit is contained in:
parent
ac59903c89
commit
9c77980965
3 changed files with 1 additions and 53 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue