Remove unused variable, clang-format

This commit is contained in:
Alexander Montag 2024-10-01 23:22:32 +02:00
parent c38e66d008
commit b53e470c60
No known key found for this signature in database
GPG Key ID: 07FE50B35A2B7524
1 changed files with 2 additions and 3 deletions

View File

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