diff --git a/src/ui/chat/tree/tree_blocks.rs b/src/ui/chat/tree/tree_blocks.rs index 0cdf027..69b98ec 100644 --- a/src/ui/chat/tree/tree_blocks.rs +++ b/src/ui/chat/tree/tree_blocks.rs @@ -39,15 +39,6 @@ impl TreeBlocks { } } - /// See [`Blocks::new_below`]. - pub fn new_below(line: i32, top_root: Root, bottom_root: Root) -> Self { - Self { - blocks: Blocks::new_below(line), - top_root, - bottom_root, - } - } - pub fn blocks(&self) -> &Blocks> { &self.blocks } @@ -64,18 +55,10 @@ impl TreeBlocks { &self.top_root } - pub fn top_root_mut(&mut self) -> &mut Root { - &mut self.top_root - } - pub fn bottom_root(&self) -> &Root { &self.bottom_root } - pub fn bottom_root_mut(&mut self) -> &mut Root { - &mut self.bottom_root - } - pub fn prepend(&mut self, other: Self) { self.blocks.prepend(other.blocks); self.top_root = other.top_root; diff --git a/src/ui/chat/tree/widgets/indent.rs b/src/ui/chat/tree/widgets/indent.rs index 97bfb8a..b19f92a 100644 --- a/src/ui/chat/tree/widgets/indent.rs +++ b/src/ui/chat/tree/widgets/indent.rs @@ -28,7 +28,7 @@ impl Indent { #[async_trait] impl Widget for Indent { - fn size(&self, frame: &mut Frame, max_width: Option, max_height: Option) -> Size { + fn size(&self, _frame: &mut Frame, _max_width: Option, _max_height: Option) -> Size { Size::new((INDENT_WIDTH * self.level) as u16, 0) }