MusicTrackListener: remove unused code

This commit is contained in:
André Apitzsch 2018-01-24 23:28:56 +01:00
parent 7d2bbf92c5
commit 137b69c045
1 changed files with 0 additions and 4 deletions

View File

@ -66,7 +66,6 @@ class MusicTrackListener(GObject.GObject):
def __init__(self):
super(MusicTrackListener, self).__init__()
self._last_playing_music = None
self.con = {}
players = _get_music_players()
@ -93,7 +92,6 @@ class MusicTrackListener(GObject.GObject):
info = self.get_playing_track(name)
if info is not None:
self._last_playing_music = info
self.emit('music-track-changed', info)
def _vanished(self, connection, name, *user_data):
@ -115,7 +113,6 @@ class MusicTrackListener(GObject.GObject):
log.info('Signal received: %s - %s', interface_name, parameters)
info = self.get_playing_track(user_data[0])
self._last_playing_music = info
self.emit('music-track-changed', info)
@ -167,7 +164,6 @@ class MusicTrackListener(GObject.GObject):
raise
else:
info = self._properties_extract(result[0])
self._last_playing_music = info
return info