Removed upload commit action
This commit is contained in:
@@ -22,7 +22,6 @@ enum ActionValues {
|
|||||||
DeleteAct,
|
DeleteAct,
|
||||||
DownloadAct,
|
DownloadAct,
|
||||||
RetrieveAct,
|
RetrieveAct,
|
||||||
UploadAct,
|
|
||||||
UploadSongWithMetadata,
|
UploadSongWithMetadata,
|
||||||
None,
|
None,
|
||||||
}
|
}
|
||||||
@@ -101,7 +100,6 @@ impl CommitManager {
|
|||||||
ActionValues::DeleteAct => self.delete_song().await,
|
ActionValues::DeleteAct => self.delete_song().await,
|
||||||
ActionValues::DownloadAct => self.download_song().await,
|
ActionValues::DownloadAct => self.download_song().await,
|
||||||
ActionValues::RetrieveAct => self.retrieve_object().await,
|
ActionValues::RetrieveAct => self.retrieve_object().await,
|
||||||
ActionValues::UploadAct => self.upload_song(),
|
|
||||||
ActionValues::UploadSongWithMetadata => self.upload_song_with_metadata().await,
|
ActionValues::UploadSongWithMetadata => self.upload_song_with_metadata().await,
|
||||||
_ => {
|
_ => {
|
||||||
println!("Nothing good here");
|
println!("Nothing good here");
|
||||||
@@ -127,7 +125,6 @@ impl CommitManager {
|
|||||||
let actions: HashMap<String, ActionValues> = HashMap::from([
|
let actions: HashMap<String, ActionValues> = HashMap::from([
|
||||||
("download".to_string(), ActionValues::DownloadAct),
|
("download".to_string(), ActionValues::DownloadAct),
|
||||||
("download".to_string(), ActionValues::DownloadAct),
|
("download".to_string(), ActionValues::DownloadAct),
|
||||||
("upload".to_string(), ActionValues::UploadAct),
|
|
||||||
(
|
(
|
||||||
"upload-meta".to_string(),
|
"upload-meta".to_string(),
|
||||||
ActionValues::UploadSongWithMetadata,
|
ActionValues::UploadSongWithMetadata,
|
||||||
@@ -266,12 +263,6 @@ impl CommitManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Remove at some point
|
|
||||||
fn upload_song(&self) {
|
|
||||||
println!("Deleting song");
|
|
||||||
panic!("Not supported");
|
|
||||||
}
|
|
||||||
|
|
||||||
async fn parse_token(&self, api: &models::api::Api) -> icarus_models::token::AccessToken {
|
async fn parse_token(&self, api: &models::api::Api) -> icarus_models::token::AccessToken {
|
||||||
println!("Fetching token");
|
println!("Fetching token");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user