From b53e470c605ab114894224479d94df0ae95fe6a3 Mon Sep 17 00:00:00 2001 From: Alexander Montag Date: Tue, 1 Oct 2024 23:22:32 +0200 Subject: [PATCH] Remove unused variable, clang-format --- editor/tree_search.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/editor/tree_search.cpp b/editor/tree_search.cpp index 6ea4a31..d9cf2ef 100644 --- a/editor/tree_search.cpp +++ b/editor/tree_search.cpp @@ -60,11 +60,10 @@ void TreeSearch::_filter_tree() { _filter_tree(tree_reference->get_root(), false); } -void TreeSearch::_filter_tree(TreeItem * p_item, bool p_parent_matching) { - bool child_visibility = true; +void TreeSearch::_filter_tree(TreeItem *p_item, bool p_parent_matching) { bool visible = number_matches.has(p_item) | p_parent_matching; - if (!visible){ + if (!visible) { p_item->set_visible(visible); } bool is_matching = _vector_has_bsearch(matching_entries, p_item);