Removed unnecessary docstrings.
This commit is contained in:
parent
44b7974f79
commit
e9e9646d61
@ -59,8 +59,6 @@ class HistoryController(object):
|
|||||||
return copy.copy(self._history)
|
return copy.copy(self._history)
|
||||||
|
|
||||||
def _export_state(self):
|
def _export_state(self):
|
||||||
"""Internal method for :class:`mopidy.Core`."""
|
|
||||||
|
|
||||||
# 500 tracks a 3 minutes -> 24 hours history
|
# 500 tracks a 3 minutes -> 24 hours history
|
||||||
count_max = 500
|
count_max = 500
|
||||||
count = 1
|
count = 1
|
||||||
@ -75,7 +73,6 @@ class HistoryController(object):
|
|||||||
return HistoryState(history=history_list)
|
return HistoryState(history=history_list)
|
||||||
|
|
||||||
def _restore_state(self, state, coverage):
|
def _restore_state(self, state, coverage):
|
||||||
"""Internal method for :class:`mopidy.Core`."""
|
|
||||||
if state:
|
if state:
|
||||||
if 'history' in coverage:
|
if 'history' in coverage:
|
||||||
self._history = []
|
self._history = []
|
||||||
|
|||||||
@ -102,12 +102,10 @@ class MixerController(object):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def _export_state(self):
|
def _export_state(self):
|
||||||
"""Internal method for :class:`mopidy.Core`."""
|
|
||||||
return MixerState(volume=self.get_volume(),
|
return MixerState(volume=self.get_volume(),
|
||||||
mute=self.get_mute())
|
mute=self.get_mute())
|
||||||
|
|
||||||
def _restore_state(self, state, coverage):
|
def _restore_state(self, state, coverage):
|
||||||
"""Internal method for :class:`mopidy.Core`."""
|
|
||||||
if state:
|
if state:
|
||||||
if 'mixer' in coverage:
|
if 'mixer' in coverage:
|
||||||
if state.volume:
|
if state.volume:
|
||||||
|
|||||||
@ -600,14 +600,12 @@ class PlaybackController(object):
|
|||||||
listener.CoreListener.send('seeked', time_position=time_position)
|
listener.CoreListener.send('seeked', time_position=time_position)
|
||||||
|
|
||||||
def _export_state(self):
|
def _export_state(self):
|
||||||
"""Internal method for :class:`mopidy.Core`."""
|
|
||||||
return models.PlaybackState(
|
return models.PlaybackState(
|
||||||
tlid=self.get_current_tlid(),
|
tlid=self.get_current_tlid(),
|
||||||
position=self.get_time_position(),
|
position=self.get_time_position(),
|
||||||
state=self.get_state())
|
state=self.get_state())
|
||||||
|
|
||||||
def _restore_state(self, state, coverage):
|
def _restore_state(self, state, coverage):
|
||||||
"""Internal method for :class:`mopidy.Core`."""
|
|
||||||
if state:
|
if state:
|
||||||
new_state = None
|
new_state = None
|
||||||
if 'play-always' in coverage:
|
if 'play-always' in coverage:
|
||||||
|
|||||||
@ -649,7 +649,6 @@ class TracklistController(object):
|
|||||||
listener.CoreListener.send('options_changed')
|
listener.CoreListener.send('options_changed')
|
||||||
|
|
||||||
def _export_state(self):
|
def _export_state(self):
|
||||||
"""Internal method for :class:`mopidy.Core`."""
|
|
||||||
return TracklistState(
|
return TracklistState(
|
||||||
tl_tracks=self._tl_tracks,
|
tl_tracks=self._tl_tracks,
|
||||||
next_tlid=self._next_tlid,
|
next_tlid=self._next_tlid,
|
||||||
@ -659,7 +658,6 @@ class TracklistController(object):
|
|||||||
single=self.get_single())
|
single=self.get_single())
|
||||||
|
|
||||||
def _restore_state(self, state, coverage):
|
def _restore_state(self, state, coverage):
|
||||||
"""Internal method for :class:`mopidy.Core`."""
|
|
||||||
if state:
|
if state:
|
||||||
if 'mode' in coverage:
|
if 'mode' in coverage:
|
||||||
self.set_consume(state.consume)
|
self.set_consume(state.consume)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user