diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-10-08 00:53:29 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-10-08 00:53:29 +0200 |
commit | 18f575ebe5a5c656bead824a21ea19ab34ca0165 (patch) | |
tree | f7101133054966ae4e35bd15cdf65c6b6382e257 /libimagref | |
parent | 99d34d019b1a5bc02bccbccb0a5d9d79a3300606 (diff) |
Remove unused function
Diffstat (limited to 'libimagref')
-rw-r--r-- | libimagref/src/lister.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libimagref/src/lister.rs b/libimagref/src/lister.rs index 326a764f..f85e41c9 100644 --- a/libimagref/src/lister.rs +++ b/libimagref/src/lister.rs @@ -82,20 +82,6 @@ impl Default for RefLister { } } -fn list_fn(e: &Entry) -> String { - let stored_hash = match e.get_header().read("ref.content_hash") { - Ok(Some(Value::String(s))) => s.clone(), - _ => String::from("<Error: Could not read stored hash>"), - }; - - let filepath = match e.get_header().read("ref.path") { - Ok(Some(Value::String(ref s))) => s.clone(), - _ => String::from("<Error: Could not read file path>"), - }; - - format!("Ref({} -> {})", stored_hash, filepath) -} - impl Lister for RefLister { fn list<'b, I: Iterator<Item = FileLockEntry<'b>>>(&self, entries: I) -> Result<()> { |