[gnome-music/wip/jfelder/playlists-core-rewrite-prep-work: 16/21] 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: 16/21] playlists: Remove is_smart_playlist method
- Date: Tue, 2 Jul 2019 08:55:46 +0000 (UTC)
commit 0757a71eb3c0ce2dfce8786f9f4371bb4faa44c8
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 2efeada0..f0989404 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -576,19 +576,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.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]