[gnome-music/wip/jfelder/playlists-core-rewrite-prep-work: 2/7] playlists: Remove is_smart_playlist method



commit 2917a736dd843d5eb3c47a9be3995113cb60396b
Author: Jean Felder <jfelder src gnome org>
Date:   Mon May 13 21:37:06 2019 +0200

    playlists: Remove is_smart_playlist method
    
    It is not used anymore. It has been replaced by is_smart GObject
    property.

 gnomemusic/playlists.py | 13 -------------
 1 file changed, 13 deletions(-)
---
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index cae0e0a6..7179b857 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -573,19 +573,6 @@ class Playlists(GObject.GObject):
         """
         return self._smart_playlists[name]
 
-    @log
-    def is_smart_playlist(self, playlist):
-        """Checks whether the given playlist is smart or not
-
-        :return: True if the playlist is smart
-        :rtype: bool
-        """
-        for smart_playlist in self._smart_playlists.values():
-            if playlist.get_id() == smart_playlist.props.pl_id:
-                return True
-
-        return False
-
     @log
     def activate_playlist(self, playlist_id):
         """Activates a playlist.


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