diff options
author | JinYong Park <j4939.park@samsung.com> | 2017-09-19 16:23:43 +0900 |
---|---|---|
committer | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2017-09-19 16:23:43 +0900 |
commit | 3bec5a694dc7628584e69ec84be041b60dc949dc (patch) | |
tree | 84d5b27823e43a4bf304a6dcf3250585810dd6e7 | |
parent | f4f273a40051ee786c7bcc9cf94a8fdecbd103dc (diff) | |
download | efl-3bec5a694dc7628584e69ec84be041b60dc949dc.tar.gz |
remove unnecessary function call
Summary:
In _calc_align function, it could get align property through Efl_Ui_Popup_Data *pd directly,
but call align_get function previously.
Reviewers: Jaehyun_Cho, herb, thiepha, jpeg, cedric, woohyun
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D5207
-rw-r--r-- | src/lib/elementary/efl_ui_popup.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_popup.c b/src/lib/elementary/efl_ui_popup.c index 54f269c2b5..8fbc3189d5 100644 --- a/src/lib/elementary/efl_ui_popup.c +++ b/src/lib/elementary/efl_ui_popup.c @@ -74,10 +74,7 @@ _calc_align(Evas_Object *obj) Evas_Coord pw, ph; evas_object_geometry_get(obj, NULL, NULL, &pw, &ph); - Efl_Ui_Popup_Align align; - align = efl_ui_popup_align_get(obj); - - switch (align) + switch (pd->align) { case EFL_UI_POPUP_ALIGN_CENTER: efl_gfx_position_set(efl_super(obj, MY_CLASS), x + ((w - pw ) / 2), y + ((h - ph) / 2)); |