[gnome-music/wip/jfelder/selection-misc-cleanups: 3/3] disclistbox: Misc cleanups



commit f331cd864ffb81276e925002e845f60607ada2e6
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Jan 9 17:56:14 2020 +0100

    disclistbox: Misc cleanups
    
    * remove @log decorator
    * remove __repr__ method

 gnomemusic/widgets/disclistboxwidget.py | 13 -------------
 1 file changed, 13 deletions(-)
---
diff --git a/gnomemusic/widgets/disclistboxwidget.py b/gnomemusic/widgets/disclistboxwidget.py
index 242e4674..9eb017d3 100644
--- a/gnomemusic/widgets/disclistboxwidget.py
+++ b/gnomemusic/widgets/disclistboxwidget.py
@@ -25,7 +25,6 @@
 from gettext import gettext as _
 from gi.repository import Gdk, GObject, Gtk
 
-from gnomemusic import log
 from gnomemusic.widgets.songwidget import SongWidget
 
 
@@ -52,10 +51,6 @@ class DiscBox(Gtk.ListBoxRow):
     show_favorites = GObject.Property(type=bool, default=False)
     show_song_numbers = GObject.Property(type=bool, default=False)
 
-    def __repr__(self):
-        return '<DiscBox>'
-
-    @log
     def __init__(self, model):
         """Initialize
 
@@ -73,7 +68,6 @@ class DiscBox(Gtk.ListBoxRow):
 
         self._list_box.bind_model(self._model, self._create_widget)
 
-    @log
     def set_disc_number(self, disc_number):
         """Set the dics number to display
 
@@ -109,7 +103,6 @@ class DiscBox(Gtk.ListBoxRow):
 
         return song_widget
 
-    @log
     def _song_activated(self, widget, event):
         if widget.props.select_click:
             widget.props.select_click = False
@@ -145,10 +138,6 @@ class DiscListBox(Gtk.ListBox):
 
     selection_mode_allowed = GObject.Property(type=bool, default=False)
 
-    def __repr__(self):
-        return '<DiscListBox>'
-
-    @log
     def __init__(self):
         """Initialize"""
         super().__init__()
@@ -158,7 +147,6 @@ class DiscListBox(Gtk.ListBox):
 
         self.get_style_context().add_class("disc-list-box")
 
-    @log
     def select_all(self):
         """Select all songs"""
         def child_select_all(child):
@@ -166,7 +154,6 @@ class DiscListBox(Gtk.ListBox):
 
         self.foreach(child_select_all)
 
-    @log
     def select_none(self):
         """Deselect all songs"""
         def child_select_none(child):


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