summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2016-03-15 11:39:47 -0700
committerCedric Bail <cedric@osg.samsung.com>2016-03-15 11:39:59 -0700
commitbdde588b164ffbd23839a701cf789b94b05077bb (patch)
tree7821fc9d9f1d5a1ad7ddab9cafbfbe13f442a6e0 /src
parentafb49ec0962a48f0c500891853840c4b2882292f (diff)
edje: remove redundant fetch code in file.set method
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 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/edje/edje_smart.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c
index ab42445257..a8ef1bcd22 100644
--- a/src/lib/edje/edje_smart.c
+++ b/src/lib/edje/edje_smart.c
@@ -338,7 +338,7 @@ _edje_object_evas_object_smart_calculate(Eo *obj EINA_UNUSED, Edje *ed)
338} 338}
339 339
340EOLIAN static Eina_Bool 340EOLIAN static Eina_Bool
341_edje_object_efl_file_file_set(Eo *obj, Edje *_pd EINA_UNUSED, const char *file, const char *group) 341_edje_object_efl_file_file_set(Eo *obj, Edje *ed, const char *file, const char *group)
342{ 342{
343 Eina_Bool ret; 343 Eina_Bool ret;
344 Eina_File *f = NULL; 344 Eina_File *f = NULL;
@@ -351,9 +351,6 @@ _edje_object_efl_file_file_set(Eo *obj, Edje *_pd EINA_UNUSED, const char *file,
351 f = eina_file_open(file, EINA_FALSE); 351 f = eina_file_open(file, EINA_FALSE);
352 if (!f) 352 if (!f)
353 { 353 {
354 Edje *ed;
355
356 ed = _edje_fetch(obj);
357 ed->load_error = EDJE_LOAD_ERROR_DOES_NOT_EXIST; 354 ed->load_error = EDJE_LOAD_ERROR_DOES_NOT_EXIST;
358 return ret; 355 return ret;
359 } 356 }