aboutsummaryrefslogtreecommitdiff
path: root/src/grid/storage.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2018-02-11 12:27:23 -0800
committerJoe Wilm <joe@jwilm.com>2018-06-02 09:24:38 -0700
commit84769ce170bd529989698bbbb4ee902e72569cbe (patch)
tree2ac75d2bd9474bd6544977fd9a01a2a6d8d1839a /src/grid/storage.rs
parent92b11cfa43c3a5d32b461e43975146b27eb71ccd (diff)
downloadalacritty-84769ce170bd529989698bbbb4ee902e72569cbe.tar.gz
alacritty-84769ce170bd529989698bbbb4ee902e72569cbe.zip
Remove some unused impls
Diffstat (limited to 'src/grid/storage.rs')
-rw-r--r--src/grid/storage.rs23
1 files changed, 0 insertions, 23 deletions
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;