aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2018-02-11 12:27:23 -0800
committerJoe Wilm <joe@jwilm.com>2018-03-07 09:46:18 -0800
commit7af765502f22c1f836b047b83e95025e121f3aca (patch)
treefe14308e29584289bb519b4c022cb08b3848e69f
parentdebf6003b5a168f7e1e839d07072bc64cb66f200 (diff)
downloadalacritty-7af765502f22c1f836b047b83e95025e121f3aca.tar.gz
alacritty-7af765502f22c1f836b047b83e95025e121f3aca.zip
Remove some unused impls
-rw-r--r--src/grid/mod.rs10
-rw-r--r--src/grid/storage.rs23
2 files changed, 0 insertions, 33 deletions
diff --git a/src/grid/mod.rs b/src/grid/mod.rs
index 0c84530a..12702ddf 100644
--- a/src/grid/mod.rs
+++ b/src/grid/mod.rs
@@ -346,16 +346,6 @@ impl<'point, T> IndexMut<&'point Point> for Grid<T> {
}
}
-impl<'a, T> IntoIterator for &'a Grid<T> {
- type Item = &'a Row<T>;
- type IntoIter = self::storage::Iter<'a, Row<T>>;
-
- #[inline]
- fn into_iter(self) -> self::storage::Iter<'a, Row<T>> {
- self.raw.iter()
- }
-}
-
// =================================================================================================
// Regions =========================================================================================
// =================================================================================================
diff --git a/src/grid/storage.rs b/src/grid/storage.rs
index 49f3d26c..3c64f700 100644
--- a/src/grid/storage.rs
+++ b/src/grid/storage.rs
@@ -55,10 +55,6 @@ impl<T> Storage<T> {
self.inner.swap(a, b);
}
- pub fn iter(&self) -> Iter<T> {
- Iter { storage: self, index: 0 }
- }
-
pub fn iter_mut(&mut self) -> IterMut<T> {
IterMut { storage: self, index: 0 }
}
@@ -92,30 +88,11 @@ impl<T> IndexMut<usize> for Storage<T> {
}
}
-pub struct Iter<'a, T: 'a> {
- storage: &'a Storage<T>,
- index: usize,
-}
-
pub struct IterMut<'a, T: 'a> {
storage: &'a mut Storage<T>,
index: usize,
}
-impl<'a, T: 'a> Iterator for Iter<'a, T> {
- type Item = &'a T;
-
- fn next(&mut self) -> Option<Self::Item> {
- if self.index == self.storage.len() {
- None
- } else {
- let res = Some(&self.storage[self.index]);
- self.index += 1;
- res
- }
- }
-}
-
impl<'a, T: 'a> Iterator for IterMut<'a, T> {
type Item = &'a mut T;