simplify list deletion

use eina_list_free instead of removing one and one element

SVN revision: 53689
This commit is contained in:
Sebastian Dransfeld 2010-10-20 20:39:19 +00:00
parent 3a5d43ea9c
commit b2ecad6a06
1 changed files with 1 additions and 3 deletions

View File

@ -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;