Remove dead code for 'play-always'

This commit is contained in:
Jens Luetjen 2016-04-02 15:58:05 +02:00
parent 6ee36752bd
commit ac47d254a3
3 changed files with 1 additions and 4 deletions

View File

@ -198,7 +198,6 @@ class Core(
- 'tracklist' fill the tracklist - 'tracklist' fill the tracklist
- 'mode' set tracklist properties (consume, random, repeat, single) - 'mode' set tracklist properties (consume, random, repeat, single)
- 'play-last' restore play state ('tracklist' also required) - 'play-last' restore play state ('tracklist' also required)
- 'play-always' start playing ('tracklist' also required)
- 'mixer' set mixer volume and mute state - 'mixer' set mixer volume and mute state
- 'history' restore history - 'history' restore history

View File

@ -608,8 +608,6 @@ class PlaybackController(object):
def _load_state(self, state, coverage): def _load_state(self, state, coverage):
if state: if state:
new_state = None new_state = None
if 'play-always' in coverage:
new_state = PlaybackState.PLAYING
if 'play-last' in coverage: if 'play-last' in coverage:
new_state = state.state new_state = state.state
if state.tlid is not None: if state.tlid is not None:

View File

@ -1155,7 +1155,7 @@ class TesetCorePlaybackExportRestore(BaseTest):
state = PlaybackState( state = PlaybackState(
time_position=0, state='playing', tlid=tl_tracks[2].tlid) time_position=0, state='playing', tlid=tl_tracks[2].tlid)
coverage = ['play-always'] coverage = ['play-last']
self.core.playback._load_state(state, coverage) self.core.playback._load_state(state, coverage)
self.replay_events() self.replay_events()