diff options
author | John Sirois <john.sirois@gmail.com> | 2016-07-14 20:07:25 -0600 |
---|---|---|
committer | John Sirois <john.sirois@gmail.com> | 2016-07-14 20:07:30 -0600 |
commit | a1bf76ed793b1a26a49b7268e77a1958fc1ee86f (patch) | |
tree | 0b4e6fc45ebb2d7de08872cdd58e5a63be777d0c /libimagentrylink | |
parent | 3a2010c35baffced9e62f0cd2d71cd3741702ad3 (diff) |
Remove unused `Link::retrieve` helper.
Diffstat (limited to 'libimagentrylink')
-rw-r--r-- | libimagentrylink/src/external.rs | 7 |
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() |