summaryrefslogtreecommitdiffstats
path: root/lib/entry/libimagentrylink
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-04-13 22:16:32 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-04-14 00:16:47 +0200
commitaa3fdb88d51b53fe613decb38e99f726eae094e1 (patch)
tree1f51e8ab2952eaa719b8ed85c266bdc494190b0e /lib/entry/libimagentrylink
parent4afebbe9e4463a8da4ab6f86e0f8099f9aa2a3eb (diff)
Remove GetIter
Because the code is not used. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/entry/libimagentrylink')
-rw-r--r--lib/entry/libimagentrylink/src/internal.rs30
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/entry/libimagentrylink/src/internal.rs b/lib/entry/libimagentrylink/src/internal.rs
index be979e00..3f2df918 100644
--- a/lib/entry/libimagentrylink/src/internal.rs
+++ b/lib/entry/libimagentrylink/src/internal.rs
@@ -200,10 +200,6 @@ pub mod iter {
LinkIter(v.into_iter())
}
- pub fn into_getter(self, store: &Store) -> GetIter {
- GetIter(self.0, store)
- }
-
}
impl Iterator for LinkIter {
@@ -229,32 +225,6 @@ pub mod iter {
}
}
- /// An Iterator that `Store::get()`s the Entries from the store while consumed
- pub struct GetIter<'a>(IntoIter<Link>, &'a Store);
-
- impl<'a> GetIter<'a> {
- pub fn new(i: IntoIter<Link>, store: &'a Store) -> GetIter<'a> {
- GetIter(i, store)
- }
-
- pub fn store(&self) -> &Store {
- self.1
- }
- }
-
- impl<'a> Iterator for GetIter<'a> {
- type Item = Result<FileLockEntry<'a>>;
-
- fn next(&mut self) -> Option<Self::Item> {
- self.0.next().and_then(|id| match self.1.get(id) {
- Ok(None) => None,
- Ok(Some(x)) => Some(Ok(x)),
- Err(e) => Some(Err(e).map_err(From::from)),
- })
- }
-
- }
-
}
impl InternalLinker for Entry {