From a1bf76ed793b1a26a49b7268e77a1958fc1ee86f Mon Sep 17 00:00:00 2001 From: John Sirois Date: Thu, 14 Jul 2016 20:07:25 -0600 Subject: [PATCH] Remove unused `Link::retrieve` helper. --- libimagentrylink/src/external.rs | 7 ------- 1 file changed, 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>> { - 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 { file.get_header()