From 601f2c4e5f90e92964c55576cf02fa43edc4b006 Mon Sep 17 00:00:00 2001 From: wongjiahau Date: Sat, 25 Feb 2023 16:41:00 +0800 Subject: [PATCH] chore(ui/tree): remove useless comments --- helix-term/src/ui/tree.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/helix-term/src/ui/tree.rs b/helix-term/src/ui/tree.rs index a08578a6..716a819e 100644 --- a/helix-term/src/ui/tree.rs +++ b/helix-term/src/ui/tree.rs @@ -19,10 +19,8 @@ use super::Prompt; pub trait TreeViewItem: Sized + Ord { type Params; - // fn text(&self, cx: &mut Context, selected: bool, params: &mut Self::Params) -> Spans; fn name(&self) -> String; fn is_parent(&self) -> bool; - // fn cmp(&self, other: &Self) -> Ordering; fn filter(&self, s: &str) -> bool { self.name().to_lowercase().contains(&s.to_lowercase()) @@ -37,7 +35,6 @@ fn tree_item_cmp(item1: &T, item2: &T) -> Ordering { fn vec_to_tree(mut items: Vec) -> Vec> { items.sort(); - // items.sort_by(tree_item_cmp); index_elems( 0, items