From e74745c9fcbc95ed0ea551643325d82940b1bea1 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 14 Oct 2017 13:08:37 +0200 Subject: [PATCH] Remove RefStore::get() which was simply a wrapper to Store::get() --- lib/entry/libimagentryref/src/refstore.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/entry/libimagentryref/src/refstore.rs b/lib/entry/libimagentryref/src/refstore.rs index e992a9b3..acfb2b8c 100644 --- a/lib/entry/libimagentryref/src/refstore.rs +++ b/lib/entry/libimagentryref/src/refstore.rs @@ -43,9 +43,6 @@ pub trait RefStore { /// Check whether there is a reference to the file at `pb` fn exists(&self, pb: PathBuf) -> Result; - /// Try to get `si` as Ref object from the store - fn get<'a>(&'a self, si: StoreId) -> Result>; - /// Get a Ref object from the store by hash. /// /// Returns None if the hash cannot be found. @@ -111,14 +108,6 @@ impl RefStore for Store { }) } - /// Try to get `si` as Ref object from the store - fn get<'a>(&'a self, si: StoreId) -> Result> { - match self.get(si)? { - None => return Err(RE::from_kind(REK::RefNotInStore)), - Some(fle) => Ok(fle), - } - } - /// Get a Ref object from the store by hash. /// /// Returns None if the hash cannot be found.