[gnome-music] view: pyflakes fixed



commit b4b384c72dbcc2ae656a5662ee5de3d87bf291c2
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Sat Feb 28 17:00:21 2015 +0100

    view: pyflakes fixed
    
    remove duplicated 'current_playlist_is_protected'
    remove unused _iter assignments

 gnomemusic/view.py |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index a630fbf..df96417 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -432,7 +432,7 @@ class Songs(ViewContainer):
             or _("Unknown Artist")
         if item.get_url() is None:
             return
-        _iter = self.model.insert_with_valuesv(
+        self.model.insert_with_valuesv(
             -1,
             [2, 3, 5, 9],
             [albumArtCache.get_media_title(item),
@@ -1132,7 +1132,7 @@ class Playlist(ViewContainer):
         artist = item.get_string(Grl.METADATA_KEY_ARTIST)\
             or item.get_author()\
             or _("Unknown Artist")
-        _iter = model.insert_with_valuesv(
+        model.insert_with_valuesv(
             -1,
             [2, 3, 5, 9],
             [title, artist, item, bool(item.get_lyrics())])
@@ -1170,14 +1170,6 @@ class Playlist(ViewContainer):
             return False
 
     @log
-    def current_playlist_is_protected(self):
-        current_playlist_id = self.current_playlist.get_id()
-        if current_playlist_id in StaticPlaylists.get_protected_ids():
-            return True
-        else:
-            return False
-
-    @log
     def stage_playlist_for_deletion(self):
         self.model.clear()
         _iter = self.playlists_sidebar.get_generic_view().get_selection().get_selected()[1]


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