forked from enlightenment/efl
Simplify code by removing unneeded auxiliary variable
SVN revision: 52135
This commit is contained in:
parent
bd12ce52f7
commit
77d42e9cca
|
@ -183,7 +183,6 @@ edje_file_group_exists(const char *file, const char *glob)
|
||||||
Edje_File *edf;
|
Edje_File *edf;
|
||||||
int error_ret = 0;
|
int error_ret = 0;
|
||||||
Eina_Bool succeed = EINA_FALSE;
|
Eina_Bool succeed = EINA_FALSE;
|
||||||
Edje_Patterns *patterns;
|
|
||||||
|
|
||||||
if ((!file) || (!*file))
|
if ((!file) || (!*file))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
@ -192,11 +191,7 @@ edje_file_group_exists(const char *file, const char *glob)
|
||||||
if (!edf)
|
if (!edf)
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
||||||
if (edf->collection_patterns)
|
if (!edf->collection_patterns)
|
||||||
{
|
|
||||||
patterns = edf->collection_patterns;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
Edje_Part_Collection_Directory_Entry *ce;
|
Edje_Part_Collection_Directory_Entry *ce;
|
||||||
Eina_Iterator *i;
|
Eina_Iterator *i;
|
||||||
|
@ -209,14 +204,11 @@ edje_file_group_exists(const char *file, const char *glob)
|
||||||
|
|
||||||
eina_iterator_free(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);
|
eina_list_free(l);
|
||||||
}
|
}
|
||||||
|
|
||||||
succeed = edje_match_collection_dir_exec(patterns, glob);
|
succeed = edje_match_collection_dir_exec(edf->collection_patterns, glob);
|
||||||
|
|
||||||
edf->collection_patterns = patterns;
|
|
||||||
|
|
||||||
_edje_cache_file_unref(edf);
|
_edje_cache_file_unref(edf);
|
||||||
return succeed;
|
return succeed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue