Summary:
Edje data structure is passed as a parameter, but in file.set method
_edje_fetch() is called one more time unnecessarily.
Reviewers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D3788
Change-Id: I87ea885f9f47881b7ea17c4f39839c8f72e5becb
Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
}
EOLIAN static Eina_Bool
-_edje_object_efl_file_file_set(Eo *obj, Edje *_pd EINA_UNUSED, const char *file, const char *group)
+_edje_object_efl_file_file_set(Eo *obj, Edje *ed, const char *file, const char *group)
{
Eina_Bool ret;
Eina_File *f = NULL;
f = eina_file_open(file, EINA_FALSE);
if (!f)
{
- Edje *ed;
-
- ed = _edje_fetch(obj);
ed->load_error = EDJE_LOAD_ERROR_DOES_NOT_EXIST;
return ret;
}