Remove unused Link::retrieve
helper.
This commit is contained in:
parent
3a2010c35b
commit
a1bf76ed79
1 changed files with 0 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue