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



commit 446c8b307b3eac8d9a446b30789b5944f73c9e39
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 89e362ce..ec7686d0 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -572,19 +572,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]