From 18f575ebe5a5c656bead824a21ea19ab34ca0165 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 8 Oct 2016 00:53:29 +0200 Subject: [PATCH] Remove unused function --- libimagref/src/lister.rs | 14 -------------- 1 file changed, 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(""), - }; - - let filepath = match e.get_header().read("ref.path") { - Ok(Some(Value::String(ref s))) => s.clone(), - _ => String::from(""), - }; - - format!("Ref({} -> {})", stored_hash, filepath) -} - impl Lister for RefLister { fn list<'b, I: Iterator>>(&self, entries: I) -> Result<()> {