From 7c54c63d274fb2f95a821a7b00f6eee2d4592c7b Mon Sep 17 00:00:00 2001 From: Sander Cyber Date: Thu, 4 Apr 2024 23:42:50 +0300 Subject: [PATCH] fix lints errors --- helix-term/src/commands.rs | 2 +- helix-view/src/tree.rs | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 874b07471..099adb0b3 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -43,8 +43,8 @@ info::Info, input::KeyEvent, keyboard::KeyCode, - tree::{self, Dimension, Resize}, theme::Style, + tree::{self, Dimension, Resize}, view::View, Document, DocumentId, Editor, ViewId, }; diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs index 2801fe78b..822ffa45d 100644 --- a/helix-view/src/tree.rs +++ b/helix-view/src/tree.rs @@ -114,12 +114,6 @@ fn insert_child(&mut self, index: usize, node: ViewId) -> &mut Self { self } - fn remove_child(&mut self, index: usize) -> &mut Self { - self.children.remove(index); - self.remove_child_bounds(index); - self - } - fn add_child_bounds(&mut self) -> &mut Self { self.node_bounds.push(ContainerBounds { width: 10, @@ -141,11 +135,6 @@ fn insert_child_bounds(&mut self, index: usize) -> &mut Self { self } - fn remove_child_bounds(&mut self, index: usize) -> &mut Self { - self.node_bounds.remove(index); - self - } - fn calculate_slots_width(&self) -> usize { self.node_bounds .iter()