[gnome-music/wip/jfelder/mpris-cleanup: 30/41] mpris: Remove unused signals from the TrackList interface



commit b205044606b8ad619b13ff9fa3bc2df7a8d07c2a
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Apr 4 15:30:02 2019 +0200

    mpris: Remove unused signals from the TrackList interface
    
    TrackAdded, TrackRemoved and TrackMetadataChanged signal are unused by
    GNOME Music. Only the TrackListRepaced signal is used.

 gnomemusic/mpris.py | 22 ----------------------
 1 file changed, 22 deletions(-)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index bb47018d..52fffe56 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -676,28 +676,6 @@ class MPRIS(DBusInterface):
                              GLib.Variant.new_tuple(GLib.Variant('ao', tracks),
                                                     GLib.Variant('o', current_song)))
 
-    def TrackAdded(self, metadata, after_track):
-        self.con.emit_signal(None,
-                             '/org/mpris/MediaPlayer2',
-                             MPRIS.MEDIA_PLAYER2_TRACKLIST_IFACE,
-                             'TrackAdded',
-                             GLib.Variant.new_tuple(GLib.Variant('a{sv}', metadata),
-                                                    GLib.Variant('o', after_track)))
-
-    def TrackRemoved(self, path):
-        self.con.emit_signal(
-            None, '/org/mpris/MediaPlayer2',
-            MPRIS.MEDIA_PLAYER2_TRACKLIST_IFACE, 'TrackRemoved',
-            GLib.Variant.new_tuple(GLib.Variant('o', path)))
-
-    def TrackMetadataChanged(self, path, metadata):
-        self.con.emit_signal(
-            None, '/org/mpris/MediaPlayer2',
-            MPRIS.MEDIA_PLAYER2_TRACKLIST_IFACE,
-            'TrackMetadataChanged',
-            GLib.Variant.new_tuple(
-                GLib.Variant('o', path), GLib.Variant('a{sv}', metadata)))
-
     def ActivatePlaylist(self, playlist_path):
         playlist_id = self._get_playlist_from_dbus_path(playlist_path).get_id()
         self._playlists.activate_playlist(playlist_id)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]