summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-10-14 13:08:37 +0200
committerMatthias Beyer <mail@beyermatthias.de>2017-10-14 13:08:37 +0200
commite74745c9fcbc95ed0ea551643325d82940b1bea1 (patch)
treeac1f11eb12068e90e6855551247e7740b8fcc4fa /lib
parentbdf1848f3f5f7bf962725f057cd3236b57486544 (diff)
Remove RefStore::get() which was simply a wrapper to Store::get()
Diffstat (limited to 'lib')
-rw-r--r--lib/entry/libimagentryref/src/refstore.rs11
1 files changed, 0 insertions, 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<bool>;
- /// Try to get `si` as Ref object from the store
- fn get<'a>(&'a self, si: StoreId) -> Result<FileLockEntry<'a>>;
-
/// 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<FileLockEntry<'a>> {
- 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.