Merge pull request #537 from jsirois/jsirois/warnings/unused-func

Remove unused `Link::retrieve` helper.
This commit is contained in:
Matthias Beyer 2016-07-15 11:16:38 +02:00 committed by GitHub
commit 0ad4c6b6c6
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()