From 533614d07d8f1fbc13d15597cb59c101a7b52f05 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Thu, 22 May 2025 16:13:45 -0400 Subject: [PATCH] Code cleanup --- src/callers/song.rs | 4 ---- src/main.rs | 5 ----- 2 files changed, 9 deletions(-) diff --git a/src/callers/song.rs b/src/callers/song.rs index a638274..b4ddeef 100644 --- a/src/callers/song.rs +++ b/src/callers/song.rs @@ -440,10 +440,6 @@ pub mod endpoint { data.len() ); - // Save the file to disk - // let mut file = std::fs::File::create(&file_name).unwrap(); - // file.write_all(&data).unwrap(); - let raw_data: Vec = data.to_vec(); match song_queue::update(&pool, &raw_data, &id).await { Ok(queued_data) => { diff --git a/src/main.rs b/src/main.rs index c2994cb..038c9fc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1122,8 +1122,6 @@ mod tests { "Queued data should not be empty" ); - // let new_file = String::from("tests/Machine_gun/new_file.flac"); - let temp_file = tempfile::tempdir() .expect("Could not create test directory"); let test_dir = String::from(temp_file.path().to_str().unwrap()); @@ -1142,8 +1140,6 @@ mod tests { let raw_uri = String::from(crate::callers::endpoints::QUEUESONGUPDATE); let end_index = raw_uri.len() - 5; - // let mut uri: String = (&raw_uri[..end_index]).to_string(); - // uri += &id.to_string(); let uri = format!( "{}/{}", @@ -1151,7 +1147,6 @@ mod tests { id.to_string() ); - // app.clone().oneshot(req).await match app .clone() .oneshot(