Remove unused destroy() methods from backend controllers and providers
This commit is contained in:
parent
ef29a82626
commit
c6d258fae2
@ -50,6 +50,12 @@ v0.6.0 (in development)
|
||||
|
||||
- Unescape all incoming MPD requests. (Fixes: :issue:`113`)
|
||||
|
||||
**multi-backend changes**
|
||||
|
||||
- Remove `destroy()` methods from backend controller and provider APIs, as it
|
||||
was not in use and actually not called by any code. Will reintroduce when
|
||||
needed.
|
||||
|
||||
|
||||
v0.5.0 (2011-06-15)
|
||||
===================
|
||||
|
||||
@ -21,10 +21,6 @@ class CurrentPlaylistController(object):
|
||||
self._cp_tracks = []
|
||||
self._version = 0
|
||||
|
||||
def destroy(self):
|
||||
"""Cleanup after component."""
|
||||
pass
|
||||
|
||||
@property
|
||||
def cp_tracks(self):
|
||||
"""
|
||||
|
||||
@ -16,10 +16,6 @@ class LibraryController(object):
|
||||
self.backend = backend
|
||||
self.provider = provider
|
||||
|
||||
def destroy(self):
|
||||
"""Cleanup after component."""
|
||||
self.provider.destroy()
|
||||
|
||||
def find_exact(self, **query):
|
||||
"""
|
||||
Search the library for tracks where ``field`` is ``values``.
|
||||
@ -89,14 +85,6 @@ class BaseLibraryProvider(object):
|
||||
def __init__(self, backend):
|
||||
self.backend = backend
|
||||
|
||||
def destroy(self):
|
||||
"""
|
||||
Cleanup after component.
|
||||
|
||||
*MAY be implemented by subclasses.*
|
||||
"""
|
||||
pass
|
||||
|
||||
def find_exact(self, **query):
|
||||
"""
|
||||
See :meth:`mopidy.backends.base.LibraryController.find_exact`.
|
||||
|
||||
@ -82,12 +82,6 @@ class PlaybackController(object):
|
||||
self.play_time_accumulated = 0
|
||||
self.play_time_started = None
|
||||
|
||||
def destroy(self):
|
||||
"""
|
||||
Cleanup after component.
|
||||
"""
|
||||
self.provider.destroy()
|
||||
|
||||
def _get_cpid(self, cp_track):
|
||||
if cp_track is None:
|
||||
return None
|
||||
@ -559,14 +553,6 @@ class BasePlaybackProvider(object):
|
||||
def __init__(self, backend):
|
||||
self.backend = backend
|
||||
|
||||
def destroy(self):
|
||||
"""
|
||||
Cleanup after component.
|
||||
|
||||
*MAY be implemented by subclasses.*
|
||||
"""
|
||||
pass
|
||||
|
||||
def pause(self):
|
||||
"""
|
||||
Pause playback.
|
||||
|
||||
@ -17,10 +17,6 @@ class StoredPlaylistsController(object):
|
||||
self.backend = backend
|
||||
self.provider = provider
|
||||
|
||||
def destroy(self):
|
||||
"""Cleanup after component."""
|
||||
self.provider.destroy()
|
||||
|
||||
@property
|
||||
def playlists(self):
|
||||
"""
|
||||
@ -133,14 +129,6 @@ class BaseStoredPlaylistsProvider(object):
|
||||
self.backend = backend
|
||||
self._playlists = []
|
||||
|
||||
def destroy(self):
|
||||
"""
|
||||
Cleanup after component.
|
||||
|
||||
*MAY be implemented by subclass.*
|
||||
"""
|
||||
pass
|
||||
|
||||
@property
|
||||
def playlists(self):
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user