simplify list deletion
use eina_list_free instead of removing one and one element SVN revision: 53689
This commit is contained in:
parent
3a5d43ea9c
commit
b2ecad6a06
|
@ -2725,9 +2725,7 @@ efreet_menu_process_filters(Efreet_Menu_Internal *internal, unsigned int only_un
|
|||
/* nothing to do if we're checking the other option */
|
||||
if (only_unallocated != internal->only_unallocated) return;
|
||||
|
||||
while (internal->applications)
|
||||
internal->applications = eina_list_remove_list(internal->applications,
|
||||
internal->applications);
|
||||
internal->applications = eina_list_free(internal->applications);
|
||||
|
||||
if (!internal->filters) return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue