When not sorting the file list, don't preserve read order

If the caller doesn't want the list to be sorted, there is no need to
preserve the order in which the files were actually read, since that
order is undefined anyway.
This commit is contained in:
Colomban Wendling 2012-05-08 19:33:04 +02:00
parent 13a7fb521e
commit c30936028e

View File

@ -1440,8 +1440,6 @@ GSList *utils_get_file_list_full(const gchar *path, gboolean full_path, gboolean
/* sorting last is quicker than on insertion */
if (sort)
list = g_slist_sort(list, (GCompareFunc) utils_str_casecmp);
else
list = g_slist_reverse(list);
return list;
}