Code cleanup
This commit is contained in:
12
src/meta.rs
12
src/meta.rs
@@ -108,15 +108,6 @@ pub mod coverart {
|
||||
Ok((true, res.len()))
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
if !res.is_empty() {
|
||||
let picture = &res[0];
|
||||
Ok(picture.clone().0.into_data())
|
||||
} else {
|
||||
Ok(Vec::new())
|
||||
}
|
||||
*/
|
||||
}
|
||||
Err(err) => Err(std::io::Error::new(
|
||||
std::io::ErrorKind::InvalidData,
|
||||
@@ -989,9 +980,6 @@ mod tests {
|
||||
let filename = util::get_filename(1);
|
||||
let dir = String::from(util::TESTFILEDIRECTORY);
|
||||
|
||||
// let new_coverart = String::from("Sample Tracks 3 - Other one.png");
|
||||
// let new_cover_art_path = get_full_path(&dir, &new_coverart).unwrap();
|
||||
|
||||
match file_exists(&dir, &filename) {
|
||||
Ok(_) => {
|
||||
let filepath = get_full_path(&dir, &filename).unwrap();
|
||||
|
Reference in New Issue
Block a user