Edje_File *edf;
int error_ret = 0;
Eina_Bool succeed = EINA_FALSE;
- Edje_Patterns *patterns;
if ((!file) || (!*file))
return EINA_FALSE;
if (!edf)
return EINA_FALSE;
- if (edf->collection_patterns)
- {
- patterns = edf->collection_patterns;
- }
- else
+ if (!edf->collection_patterns)
{
Edje_Part_Collection_Directory_Entry *ce;
Eina_Iterator *i;
eina_iterator_free(i);
- patterns = edje_match_collection_dir_init(l);
+ edf->collection_patterns = edje_match_collection_dir_init(l);
eina_list_free(l);
}
- succeed = edje_match_collection_dir_exec(patterns, glob);
-
- edf->collection_patterns = patterns;
-
+ succeed = edje_match_collection_dir_exec(edf->collection_patterns, glob);
_edje_cache_file_unref(edf);
return succeed;
}