diff options
author | Joe Wilm <joe@jwilm.com> | 2017-10-12 20:29:35 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-06-02 09:24:38 -0700 |
commit | 4ed25009c49b5963d91f4e3c7ead0f4a5b678980 (patch) | |
tree | b8e2f978c550662843a41e4d3f3ffda775b801d8 /src/grid/mod.rs | |
parent | 6fc0e1ec49561fd9783332b30632471336004aed (diff) | |
download | alacritty-4ed25009c49b5963d91f4e3c7ead0f4a5b678980.tar.gz alacritty-4ed25009c49b5963d91f4e3c7ead0f4a5b678980.zip |
Remove some unused methods and impls
Diffstat (limited to 'src/grid/mod.rs')
-rw-r--r-- | src/grid/mod.rs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/grid/mod.rs b/src/grid/mod.rs index bd994033..9ca0011a 100644 --- a/src/grid/mod.rs +++ b/src/grid/mod.rs @@ -122,7 +122,7 @@ impl<T: Clone> Grid<T> { } fn grow_cols(&mut self, cols: index::Column, template: &T) { - for row in self.lines_mut() { + for row in self.raw.iter_mut() { row.grow(cols, template); } @@ -131,20 +131,8 @@ impl<T: Clone> Grid<T> { } - - impl<T> Grid<T> { #[inline] - pub fn lines(&self) -> vec_deque::Iter<Row<T>> { - self.raw.iter() - } - - #[inline] - pub fn lines_mut(&mut self) -> vec_deque::IterMut<Row<T>> { - self.raw.iter_mut() - } - - #[inline] pub fn num_lines(&self) -> index::Line { self.lines } @@ -216,7 +204,7 @@ impl<T> Grid<T> { } fn shrink_cols(&mut self, cols: index::Column) { - for row in self.lines_mut() { + for row in self.raw.iter_mut() { row.shrink(cols); } |