[gnome-music/wip/mschraal/albumsview-selection-rework: 4/8] disclistboxwidget: Remove unused DiscBox functions




commit ee9427cfb7d6ca7bac4615d6a26a043339d52a3c
Author: Marinus Schraal <mschraal gnome org>
Date:   Sat Sep 11 00:22:07 2021 +0200

    disclistboxwidget: Remove unused DiscBox functions
    
    With the changes to selections, routing them through the core* objects,
    the selection functions in DiscBox have become obsolete.
    
    Remove {de}select_all from DiscBox.

 gnomemusic/widgets/disclistboxwidget.py | 14 --------------
 1 file changed, 14 deletions(-)
---
diff --git a/gnomemusic/widgets/disclistboxwidget.py b/gnomemusic/widgets/disclistboxwidget.py
index 495f0ce7c..5ac1bee87 100644
--- a/gnomemusic/widgets/disclistboxwidget.py
+++ b/gnomemusic/widgets/disclistboxwidget.py
@@ -166,17 +166,3 @@ class DiscListBox(Gtk.ListBox):
         super().__init__()
 
         self.props.valign = Gtk.Align.START
-
-    def select_all(self):
-        """Select all songs"""
-        def child_select_all(child):
-            child.select_all()
-
-        self.foreach(child_select_all)
-
-    def deselect_all(self):
-        """Deselect all songs"""
-        def child_deselect_all(child):
-            child.deselect_all()
-
-        self.foreach(child_deselect_all)


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