[gnome-music/wip/jfelder/expose-grilo-application-wide: 2/6] grilo: Remove unused function set_favorite



commit 59b4c9881b78e473f61ba37c729906313c578b40
Author: Jean Felder <jfelder src gnome org>
Date:   Fri May 3 18:36:15 2019 +0200

    grilo: Remove unused function set_favorite
    
    The only set_favorite call has been replaced by a toggle_favorite
    call.

 gnomemusic/grilo.py | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/gnomemusic/grilo.py b/gnomemusic/grilo.py
index 1d811c73..e7e0a838 100644
--- a/gnomemusic/grilo.py
+++ b/gnomemusic/grilo.py
@@ -346,16 +346,6 @@ class Grilo(GObject.GObject):
             callback(source, param, item, remaining, data)
         self.tracker.query(query, self.METADATA_KEYS, options, _callback, data)
 
-    @log
-    def set_favorite(self, song_item, favorite):
-        """Set the favorite status of a media item
-
-        :param song_item: A Grilo media item
-        :param bool favorite: Set favorite status
-        """
-        if song_item.get_favourite() != favorite:
-            self.toggle_favorite(song_item)
-
     @log
     def search(self, q, callback, data=None):
         options = self.options.copy()


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