[gnome-music/wip/jfelder/gtk4-v3: 9/166] utils: Remove wrap_list_store_sort_func




commit d624c4934619f7116a4c290ef191910dc6913e28
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Feb 3 05:35:27 2022 +0100

    utils: Remove wrap_list_store_sort_func
    
    This is not needed anymore.

 gnomemusic/utils.py | 11 -----------
 1 file changed, 11 deletions(-)
---
diff --git a/gnomemusic/utils.py b/gnomemusic/utils.py
index 5d3262a00..5f9555bd8 100644
--- a/gnomemusic/utils.py
+++ b/gnomemusic/utils.py
@@ -192,14 +192,3 @@ def natural_sort_names(name_a, name_b):
                 for tmp in re.split(r"(\d+)", normalize_caseless(text))]
 
     return _extract_numbers(name_b) < _extract_numbers(name_a)
-
-
-def wrap_list_store_sort_func(func):
-    """PyGI wrapper for SortListModel set_sort_func.
-    """
-    def wrap(a, b, *user_data):
-        a = pygobject_new_full(a, False)
-        b = pygobject_new_full(b, False)
-        return func(a, b, *user_data)
-
-    return wrap


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