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:
committed by
Henrik Friedrichsen
parent
0eedc38b8a
commit
be7ed20897
@@ -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>);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user