Skip to content

Commit 7c54c63

Browse files
committed
fix lints errors
1 parent 5a830c7 commit 7c54c63

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

helix-term/src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ use helix_view::{
4343
info::Info,
4444
input::KeyEvent,
4545
keyboard::KeyCode,
46-
tree::{self, Dimension, Resize},
4746
theme::Style,
47+
tree::{self, Dimension, Resize},
4848
view::View,
4949
Document, DocumentId, Editor, ViewId,
5050
};

helix-view/src/tree.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ impl Container {
114114
self
115115
}
116116

117-
fn remove_child(&mut self, index: usize) -> &mut Self {
118-
self.children.remove(index);
119-
self.remove_child_bounds(index);
120-
self
121-
}
122-
123117
fn add_child_bounds(&mut self) -> &mut Self {
124118
self.node_bounds.push(ContainerBounds {
125119
width: 10,
@@ -141,11 +135,6 @@ impl Container {
141135
self
142136
}
143137

144-
fn remove_child_bounds(&mut self, index: usize) -> &mut Self {
145-
self.node_bounds.remove(index);
146-
self
147-
}
148-
149138
fn calculate_slots_width(&self) -> usize {
150139
self.node_bounds
151140
.iter()

0 commit comments

Comments
 (0)