summaryrefslogtreecommitdiffstats
path: root/libimagentrylink
diff options
context:
space:
mode:
authorJohn Sirois <john.sirois@gmail.com>2016-07-14 20:07:25 -0600
committerJohn Sirois <john.sirois@gmail.com>2016-07-14 20:07:30 -0600
commita1bf76ed793b1a26a49b7268e77a1958fc1ee86f (patch)
tree0b4e6fc45ebb2d7de08872cdd58e5a63be777d0c /libimagentrylink
parent3a2010c35baffced9e62f0cd2d71cd3741702ad3 (diff)
Remove unused `Link::retrieve` helper.
Diffstat (limited to 'libimagentrylink')
-rw-r--r--libimagentrylink/src/external.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/libimagentrylink/src/external.rs b/libimagentrylink/src/external.rs
index 01f6badb..b566104e 100644
--- a/libimagentrylink/src/external.rs
+++ b/libimagentrylink/src/external.rs
@@ -42,13 +42,6 @@ impl<'a> Link<'a> {
Link { link: fle }
}
- /// For interal use only. Load an Link from a store id, if this is actually a Link
- fn retrieve(store: &'a Store, id: StoreId) -> Result<Option<Link<'a>>> {
- store.retrieve(id)
- .map(|fle| Link::get_link_uri_from_filelockentry(&fle).map(|_| Link { link: fle }))
- .map_err(|e| LE::new(LEK::StoreReadError, Some(Box::new(e))))
- }
-
/// Get a link Url object from a `FileLockEntry`, ignore errors.
fn get_link_uri_from_filelockentry(file: &FileLockEntry<'a>) -> Option<Url> {
file.get_header()