[gnome-music/wip/mschraal/gtk4-v3: 20/192] utils: Remove wrap_list_store_sort_func




commit af5fc1741ac05172a614974ef73b664aca7879fb
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 c2762cf06..d1c4a1ff9 100644
--- a/gnomemusic/utils.py
+++ b/gnomemusic/utils.py
@@ -197,14 +197,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]