[gnome-music] playlists: Remove needless function



commit 61cedd8554641138f028d898954ca97463c0f5df
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 be23590..0341b08 100644
--- a/gnomemusic/playlists.py
+++ b/gnomemusic/playlists.py
@@ -139,10 +139,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]