diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-02-22 15:34:34 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-02-22 17:05:34 +0900 |
commit | 6245639b9c0c847abaafd845b630c27e633e37c7 (patch) | |
tree | 8fd2e4fab9018aeeef3b1c96d1d6608195666dfc /src/lib | |
parent | 3f41cdf59b091644675f438a21cba5b69e9cdc8e (diff) |
genlist: Simplify code (remove one argument)
Parameter "qadd" is always true when calling _item_process_post(),
so simplify the code by removing it.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/elementary/elm_genlist.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c index ebc2bc7d90..1e4df6d8e1 100644 --- a/src/lib/elementary/elm_genlist.c +++ b/src/lib/elementary/elm_genlist.c | |||
@@ -4625,16 +4625,14 @@ _item_process(Elm_Genlist_Data *sd, | |||
4625 | } | 4625 | } |
4626 | 4626 | ||
4627 | static void | 4627 | static void |
4628 | _item_process_post(Elm_Genlist_Data *sd, | 4628 | _item_process_post(Elm_Genlist_Data *sd, Elm_Gen_Item *it) |
4629 | Elm_Gen_Item *it, | ||
4630 | Eina_Bool qadd) | ||
4631 | { | 4629 | { |
4632 | Eina_Bool show_me = EINA_FALSE; | 4630 | Eina_Bool show_me = EINA_FALSE; |
4633 | 4631 | ||
4634 | if (it->item->block->changed) | 4632 | if (it->item->block->changed) |
4635 | { | 4633 | { |
4636 | show_me = _item_block_recalc | 4634 | show_me = _item_block_recalc |
4637 | (it->item->block, it->item->block->num, qadd); | 4635 | (it->item->block, it->item->block->num, EINA_TRUE); |
4638 | it->item->block->changed = 0; | 4636 | it->item->block->changed = 0; |
4639 | if (sd->pan_changed) | 4637 | if (sd->pan_changed) |
4640 | { | 4638 | { |
@@ -4686,7 +4684,7 @@ _queue_process(Elm_Genlist_Data *sd) | |||
4686 | it->item->queued = EINA_FALSE; | 4684 | it->item->queued = EINA_FALSE; |
4687 | if (!_item_process(sd, it)) continue; | 4685 | if (!_item_process(sd, it)) continue; |
4688 | t = ecore_time_get(); | 4686 | t = ecore_time_get(); |
4689 | _item_process_post(sd, it, EINA_TRUE); | 4687 | _item_process_post(sd, it); |
4690 | /* same as eina_inlist_count > 1 */ | 4688 | /* same as eina_inlist_count > 1 */ |
4691 | if (sd->blocks && sd->blocks->next) | 4689 | if (sd->blocks && sd->blocks->next) |
4692 | { | 4690 | { |
@@ -7706,7 +7704,7 @@ _item_filtered_get(Elm_Gen_Item *it) | |||
7706 | sd->queue = eina_list_remove_list(sd->queue, l); | 7704 | sd->queue = eina_list_remove_list(sd->queue, l); |
7707 | it->item->queued = EINA_FALSE; | 7705 | it->item->queued = EINA_FALSE; |
7708 | _item_process(sd, it); | 7706 | _item_process(sd, it); |
7709 | _item_process_post(sd, it, EINA_TRUE); | 7707 | _item_process_post(sd, it); |
7710 | } | 7708 | } |
7711 | 7709 | ||
7712 | _filter_item_internal(it); | 7710 | _filter_item_internal(it); |