Cleanup: Remove PlayTrackMenu

PlayTrackMenu was used before the refactor of the contextmenus. I forgot
to clean up the struct before making the commit since rustc didn't
complain. Just cleaning up my mistakes ;)
This commit is contained in:
Thomas Frans
2022-09-22 21:14:26 +02:00
committed by Henrik Friedrichsen
parent 0eedc38b8a
commit be7ed20897
2 changed files with 1 additions and 18 deletions

View File

@@ -25,10 +25,6 @@ pub struct ContextMenu {
dialog: Modal<Dialog>,
}
pub struct PlayTrackMenu {
dialog: Modal<Dialog>,
}
pub struct AddToPlaylistMenu {
dialog: Modal<Dialog>,
}
@@ -340,13 +336,6 @@ impl ContextMenu {
}
}
impl ViewExt for PlayTrackMenu {
fn on_command(&mut self, s: &mut Cursive, cmd: &Command) -> Result<CommandResult, String> {
log::info!("playtrack command: {:?}", cmd);
handle_move_command::<bool>(&mut self.dialog, s, cmd, "playtrack_select")
}
}
impl ViewExt for AddToPlaylistMenu {
fn on_command(&mut self, s: &mut Cursive, cmd: &Command) -> Result<CommandResult, String> {
log::info!("playlist command: {:?}", cmd);
@@ -393,10 +382,6 @@ fn handle_move_command<T: 'static>(
}
}
impl ViewWrapper for PlayTrackMenu {
wrap_impl!(self.dialog: Modal<Dialog>);
}
impl ViewWrapper for AddToPlaylistMenu {
wrap_impl!(self.dialog: Modal<Dialog>);
}