From 6a52f3c5b161ca60501e08fb029f6c92a76ee1d5 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sat, 14 Dec 2019 16:08:38 -0800 Subject: [PATCH] Remove dead code. --- src/lib.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c766a9e..6aca77c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -396,7 +396,7 @@ impl Movies { } } - for (parent, mut movies) in movie_counter.into_iter() { + for (_parent, mut movies) in movie_counter.into_iter() { if movies.len() > 1 { // Sort, lowest bit_rate movie first movies.sort_by(|a, b| a.min_bit_rate().cmp(&b.min_bit_rate())); @@ -405,14 +405,6 @@ impl Movies { // Take the largest image, return the rest for removal. let tuple = (movies.remove(0), movies); dupes.push(tuple); - } else { - /* - let dateless_parent = if date_re.is_match(&parent) { - parent[..parent.len() - 7].to_string() - } else { - parent.to_string() - }; - */ } } // Sort to make this function deterministic.