Removed unreachable cases.

This commit is contained in:
Simon Persson 2018-02-20 22:09:53 +01:00
parent ef48afbf41
commit 081a282e12

View file

@ -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.")
}
}