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