[gnome-music/wip/gbsneto/playlist-improvements: 2/3] playlists: remove needless function



commit cc8b858f547b381c9392aeff9fde3ee08af6f687
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Oct 18 10:53:40 2016 -0200

    playlists: remove needless function
    
    Instead of jumping from the single-line callback _on_grilo_read()
    to another function, make the code a little bit simpler and merge
    these functions into a single one.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773192

 gnomemusic/playlists.py |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/playlists.py b/gnomemusic/playlists.py
index 38c3924..5f25d62 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -143,10 +143,6 @@ class Playlists(GObject.GObject):
 
     @log
     def _on_grilo_ready(self, data=None):
-        self.fetch_or_create_static_playlists()
-
-    @log
-    def fetch_or_create_static_playlists(self):
         """For all static playlists: get ID, if exists; if not, create the playlist and get ID."""
 
         def callback(obj, result, playlist):


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