Comment out unused debugging fn

This commit is contained in:
Stephen Seo 2021-09-16 14:44:54 +09:00
parent a373cf6a87
commit ca925a9b50

View file

@ -196,14 +196,14 @@ fn read_line(
Err((String::from("Newline not reached"), result)) Err((String::from("Newline not reached"), result))
} }
fn debug_write_albumart_to_file(data: &[u8]) -> Result<(), String> { //fn debug_write_albumart_to_file(data: &[u8]) -> Result<(), String> {
let mut f = File::create("albumartOut.jpg") // let mut f = File::create("albumartOut.jpg")
.map_err(|_| String::from("Failed to open file for writing albumart"))?; // .map_err(|_| String::from("Failed to open file for writing albumart"))?;
f.write_all(data) // f.write_all(data)
.map_err(|_| String::from("Failed to write to albumartOut.jpg"))?; // .map_err(|_| String::from("Failed to write to albumartOut.jpg"))?;
//
Ok(()) // Ok(())
} //}
fn info_loop(shared_data: Arc<Mutex<Shared>>) -> Result<(), String> { fn info_loop(shared_data: Arc<Mutex<Shared>>) -> Result<(), String> {
let mut buf: [u8; 4192] = [0; 4192]; let mut buf: [u8; 4192] = [0; 4192];