Remove unused `Link::retrieve` helper.

This commit is contained in:
John Sirois 2016-07-14 20:07:25 -06:00
parent 3a2010c35b
commit a1bf76ed79
1 changed files with 0 additions and 7 deletions

View File

@ -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()