Skip to content

Commit

Permalink
Remove unnecessary function calls (#16136)
Browse files Browse the repository at this point in the history
  • Loading branch information
zisoft authored Jan 17, 2024
1 parent 2063afe commit ff0feab
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/libs/tagging.c
Original file line number Diff line number Diff line change
Expand Up @@ -2665,13 +2665,8 @@ static gint _sort_tree_count_func(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIt

static inline gint _compare_utf8_no_case(const char *a, const char *b)
{
char *a_nc = g_utf8_casefold(a, -1);
char *a_nc_nat = g_utf8_collate_key_for_filename(a_nc, -1);
g_free(a_nc);

char *b_nc = g_utf8_casefold(b, -1);
char *b_nc_nat = g_utf8_collate_key_for_filename(b_nc, -1);
g_free(b_nc);
char *a_nc_nat = g_utf8_collate_key_for_filename(a, -1);
char *b_nc_nat = g_utf8_collate_key_for_filename(b, -1);

const gint sort = g_strcmp0(a_nc_nat, b_nc_nat);

Expand Down

0 comments on commit ff0feab

Please sign in to comment.