Remove unused function
This commit is contained in:
parent
99d34d019b
commit
18f575ebe5
1 changed files with 0 additions and 14 deletions
|
@ -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<()> {
|
||||
|
|
Loading…
Reference in a new issue