[gnome-music/wip/jfelder/playlists-core-rewrite-prep-work: 2/7] playlists: Remove is_smart_playlist method
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/playlists-core-rewrite-prep-work: 2/7] playlists: Remove is_smart_playlist method
- Date: Wed, 3 Jul 2019 12:31:05 +0000 (UTC)
commit 8932856021a0b72d2347ff29b678607a6c1007dc
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 ecf7d9a8..a36044d3 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]