Removing commented code

This commit is contained in:
2025-06-27 21:03:22 -04:00
parent eafbb7f24a
commit 0ae6214969

View File

@@ -3,23 +3,6 @@ use reqwest::multipart;
// TODO: Update the queued song with the updated queued song // TODO: Update the queued song with the updated queued song
pub async fn update_queued_song(base_url: &String, song_path: &String, song_queue_id: &uuid::Uuid) -> Result<reqwest::Response, reqwest::Error> { pub async fn update_queued_song(base_url: &String, song_path: &String, song_queue_id: &uuid::Uuid) -> Result<reqwest::Response, reqwest::Error> {
/*
let client = reqwest::Client::builder()
.build()?;
let form = reqwest::multipart::Form::new()
.part("file", reqwest::multipart::Part::bytes(std::fs::read(song_path).unwrap()).file_name("track01.flac"));
let method = "PATCH";
let url = format!("{}/api/v2/song/queue/{}", base_url, song_queue_id);
let request = client.request(reqwest::Method::from_bytes(method.as_bytes()).unwrap(), url)
.multipart(form);
let response = request.send().await?;
*/
// let body = response.text().await?;
let client = reqwest::Client::builder() let client = reqwest::Client::builder()
.build()?; .build()?;
@@ -34,7 +17,6 @@ pub async fn update_queued_song(base_url: &String, song_path: &String, song_queu
let response = request.send().await?; let response = request.send().await?;
Ok(response) Ok(response)
} }