Removed unnecessary docstrings.

This commit is contained in:
Jens Luetjen 2016-03-31 23:24:25 +02:00
parent 44b7974f79
commit e9e9646d61
4 changed files with 0 additions and 9 deletions

View File

@ -59,8 +59,6 @@ class HistoryController(object):
return copy.copy(self._history)
def _export_state(self):
"""Internal method for :class:`mopidy.Core`."""
# 500 tracks a 3 minutes -> 24 hours history
count_max = 500
count = 1
@ -75,7 +73,6 @@ class HistoryController(object):
return HistoryState(history=history_list)
def _restore_state(self, state, coverage):
"""Internal method for :class:`mopidy.Core`."""
if state:
if 'history' in coverage:
self._history = []

View File

@ -102,12 +102,10 @@ class MixerController(object):
return False
def _export_state(self):
"""Internal method for :class:`mopidy.Core`."""
return MixerState(volume=self.get_volume(),
mute=self.get_mute())
def _restore_state(self, state, coverage):
"""Internal method for :class:`mopidy.Core`."""
if state:
if 'mixer' in coverage:
if state.volume:

View File

@ -600,14 +600,12 @@ class PlaybackController(object):
listener.CoreListener.send('seeked', time_position=time_position)
def _export_state(self):
"""Internal method for :class:`mopidy.Core`."""
return models.PlaybackState(
tlid=self.get_current_tlid(),
position=self.get_time_position(),
state=self.get_state())
def _restore_state(self, state, coverage):
"""Internal method for :class:`mopidy.Core`."""
if state:
new_state = None
if 'play-always' in coverage:

View File

@ -649,7 +649,6 @@ class TracklistController(object):
listener.CoreListener.send('options_changed')
def _export_state(self):
"""Internal method for :class:`mopidy.Core`."""
return TracklistState(
tl_tracks=self._tl_tracks,
next_tlid=self._next_tlid,
@ -659,7 +658,6 @@ class TracklistController(object):
single=self.get_single())
def _restore_state(self, state, coverage):
"""Internal method for :class:`mopidy.Core`."""
if state:
if 'mode' in coverage:
self.set_consume(state.consume)