summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinYong Park <j4939.park@samsung.com>2017-09-19 16:23:43 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2017-09-19 16:23:43 +0900
commit3bec5a694dc7628584e69ec84be041b60dc949dc (patch)
tree84d5b27823e43a4bf304a6dcf3250585810dd6e7
parentf4f273a40051ee786c7bcc9cf94a8fdecbd103dc (diff)
downloadefl-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.c5
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));