[gnome-music/wip/mschraal/albumsview-selection-rework: 2/6] disclistboxwidget: Remove unused DiscBox functions
- From: Marinus Schraal <mschraal src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-music/wip/mschraal/albumsview-selection-rework: 2/6] disclistboxwidget: Remove unused DiscBox functions
 
- Date: Fri, 10 Sep 2021 23:28:59 +0000 (UTC)
 
commit 9e63c541aa0c641de6607c889d7bea3a68aa769a
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]