mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Removed unreachable cases.
This commit is contained in:
parent
ef48afbf41
commit
081a282e12
1 changed files with 2 additions and 5 deletions
|
@ -188,11 +188,8 @@ impl PlayerState {
|
|||
Playing { track_id, .. } => {
|
||||
let old_state = mem::replace(self, EndOfTrack { track_id });
|
||||
old_state.send_end_of_track();
|
||||
}
|
||||
|
||||
EndOfTrack { .. } => warn!("signal_end_of_track from end of track state"),
|
||||
Stopped => warn!("signal_end_of_track from stopped state"),
|
||||
Invalid => panic!("invalid state"),
|
||||
},
|
||||
_ => panic!("Called playing_to_end_of_track in non-playing state.")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue