Remove unused function

This commit is contained in:
Matthias Beyer 2016-10-08 00:53:29 +02:00
parent 99d34d019b
commit 18f575ebe5

View file

@ -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<()> {