[gnome-music/wip/mschraal/glib-logging: 35/65] coverstack: New logger



commit 85822e022bd9bffb14b8eed85da4297b0496833f
Author: Marinus Schraal <mschraal gnome org>
Date:   Sat Feb 1 14:47:42 2020 +0100

    coverstack: New logger

 gnomemusic/widgets/coverstack.py | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/gnomemusic/widgets/coverstack.py b/gnomemusic/widgets/coverstack.py
index ae9eff81..72d0a3af 100644
--- a/gnomemusic/widgets/coverstack.py
+++ b/gnomemusic/widgets/coverstack.py
@@ -24,7 +24,6 @@
 
 from gi.repository import GLib, GObject, Gtk
 
-from gnomemusic import log
 from gnomemusic.albumartcache import Art, DefaultIcon
 
 
@@ -44,10 +43,6 @@ class CoverStack(Gtk.Stack):
 
     _default_icon = DefaultIcon()
 
-    def __repr__(self):
-        return '<CoverStack>'
-
-    @log
     def __init__(self, size=Art.Size.MEDIUM):
         """Initialize the CoverStack
 
@@ -95,7 +90,6 @@ class CoverStack(Gtk.Stack):
             DefaultIcon.Type.LOADING, self.props.size, self.props.scale_factor)
         self._loading_cover.props.surface = icon
 
-    @log
     def update(self, coresong):
         """Update the stack with the given CoreSong
 
@@ -117,7 +111,6 @@ class CoverStack(Gtk.Stack):
         self._handler_id = self._art.connect('finished', self._art_retrieved)
         self._art.lookup()
 
-    @log
     def _set_loading_child(self):
         self.props.visible_child_name = "loading"
         self._active_child = self.props.visible_child_name
@@ -125,7 +118,6 @@ class CoverStack(Gtk.Stack):
 
         return GLib.SOURCE_REMOVE
 
-    @log
     def _art_retrieved(self, klass):
         if self._timeout:
             GLib.source_remove(self._timeout)


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