summaryrefslogtreecommitdiffstats
path: root/libimagentrylink
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-10-17 09:21:08 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-10-19 14:34:10 +0200
commitefce42b39421475868152b23dd547a2e4bb192c0 (patch)
tree5e321d67d36a168bcd4e73d394f357823d5782d6 /libimagentrylink
parent0eda8e2d0459f96aae9e5e59cf5b121d0234bf16 (diff)
Remove DeleteIter
Diffstat (limited to 'libimagentrylink')
-rw-r--r--libimagentrylink/src/internal.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/libimagentrylink/src/internal.rs b/libimagentrylink/src/internal.rs
index 9c7648ff..655da053 100644
--- a/libimagentrylink/src/internal.rs
+++ b/libimagentrylink/src/internal.rs
@@ -76,10 +76,6 @@ pub mod iter {
GetIter(self.0, store)
}
- pub fn into_deleter(self, store: &Store) -> DeleteIter {
- DeleteIter(self.0, store)
- }
-
}
impl Iterator for LinkIter {
@@ -147,24 +143,6 @@ pub mod iter {
}
- /// An Iterator that `Store::get()`s the Entries from the store while consumed
- pub struct DeleteIter<'a>(IntoIter<Link>, &'a Store);
-
- impl<'a> DeleteIter<'a> {
- fn new(i: IntoIter<Link>, store: &'a Store) -> DeleteIter<'a> {
- DeleteIter(i, store)
- }
- }
-
- impl<'a> Iterator for DeleteIter<'a> {
- type Item = Result<()>;
-
- fn next(&mut self) -> Option<Self::Item> {
- self.0.next().map(|id| self.1.delete(id).map_err_into(LEK::StoreReadError))
- }
-
- }
-
/// An iterator that removes all Items from the iterator that are not linked anymore by calling
/// `Store::delete()` on them.
///