seoz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=24ecd2a3fb0dbf6d09ccaa99c91ba8f5fbc772f1
commit 24ecd2a3fb0dbf6d09ccaa99c91ba8f5fbc772f1 Author: Daniel Juyung Seo <[email protected]> Date: Sun Apr 27 13:42:47 2014 +0900 gengrid: removed unnecessary return value check. Just return the return value without checking it. --- src/lib/elm_gengrid.c | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 72b531e..1d0e1b6 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -2199,8 +2199,7 @@ _key_action_move(Evas_Object *obj, const char *params) { if (!_elm_config->item_select_on_focus_disable) { - if (_item_single_select_up(sd)) return EINA_TRUE; - else return EINA_FALSE; + return _item_single_select_up(sd); } else return _item_focus_up(sd); @@ -2211,8 +2210,7 @@ _key_action_move(Evas_Object *obj, const char *params) return EINA_FALSE; if (!_elm_config->item_select_on_focus_disable) { - if (_item_single_select_left(sd)) return EINA_TRUE; - else return EINA_FALSE; + return _item_single_select_left(sd); } else return _item_focus_left(sd); @@ -2257,8 +2255,7 @@ _key_action_move(Evas_Object *obj, const char *params) { if (!_elm_config->item_select_on_focus_disable) { - if (_item_single_select_down(sd)) return EINA_TRUE; - else return EINA_FALSE; + return _item_single_select_down(sd); } else return _item_focus_down(sd); @@ -2269,8 +2266,7 @@ _key_action_move(Evas_Object *obj, const char *params) return EINA_FALSE; if (!_elm_config->item_select_on_focus_disable) { - if (_item_single_select_right(sd)) return EINA_TRUE; - else return EINA_FALSE; + return _item_single_select_right(sd); } else return _item_focus_right(sd); @@ -2327,8 +2323,7 @@ _key_action_move(Evas_Object *obj, const char *params) { if (!_elm_config->item_select_on_focus_disable) { - if (_item_single_select_up(sd)) return EINA_TRUE; - else return EINA_FALSE; + return _item_single_select_up(sd); } else return _item_focus_up(sd); @@ -2375,8 +2370,7 @@ _key_action_move(Evas_Object *obj, const char *params) return EINA_FALSE; if (!_elm_config->item_select_on_focus_disable) { - if (_item_single_select_right(sd)) return EINA_TRUE; - else return EINA_FALSE; + return _item_single_select_right(sd); } else return _item_focus_right(sd); @@ -2385,8 +2379,7 @@ _key_action_move(Evas_Object *obj, const char *params) { if (!_elm_config->item_select_on_focus_disable) { - if (_item_single_select_down(sd)) return EINA_TRUE; - else return EINA_FALSE; + return _item_single_select_down(sd); } else return _item_focus_down(sd); --
