From 247591707db8f1f0bf895231ca3ee66103687086 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Thu, 11 Feb 2021 22:00:49 +0100 Subject: [PATCH] code cleanup --- src/epub.rs | 3 --- src/main.rs | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/epub.rs b/src/epub.rs index a640d47..1780f1b 100644 --- a/src/epub.rs +++ b/src/epub.rs @@ -226,7 +226,6 @@ pub fn get_epub_metadata(filename: &str) -> Option { genre_found = true; } Ok(Event::Text(ref e)) if genre_found => { - //epub_meta.genre = String::from_utf8(e.to_vec()).unwrap(); epub_meta.genre = e.unescape_and_decode(&reader).unwrap(); genre_found = false; } @@ -235,8 +234,6 @@ pub fn get_epub_metadata(filename: &str) -> Option { } } - //println!("{:?}", &xml_authors); - epub_meta.authors = xml_authors .into_iter() .filter(|&(_, ref xml_author)| &xml_author.role == "aut" && &xml_author.name.len() > &0) diff --git a/src/main.rs b/src/main.rs index 06d25f3..d997046 100644 --- a/src/main.rs +++ b/src/main.rs @@ -151,8 +151,6 @@ fn fix_db_entries(tx: &Transaction, book_entries: &Vec) -> Statistics ) .unwrap(); stat.authors_fixed = stat.authors_fixed + 1; - - println!("{}", firstauthors.join(" & ")); } // Fix author names… @@ -169,8 +167,6 @@ fn fix_db_entries(tx: &Transaction, book_entries: &Vec) -> Statistics ) .unwrap(); stat.authors_fixed = stat.authors_fixed + 1; - - println!("{}", authornames.join(" & ")); } if entry.genre.is_empty() && epub_metadata.genre.len() > 0 {