From 4b91174f35be83190c054034f5931677c15a5a43 Mon Sep 17 00:00:00 2001 From: Youngbok Shin Date: Wed, 2 Aug 2017 19:07:33 +0900 Subject: [PATCH] edje: remove build warnings caused by unused parameter or variable It is patch for text.ellipsize. @tizen_fix Change-Id: I79d2604599da4a71689f291cbf8dede8435c27e6 --- src/lib/edje/edje_calc.c | 5 +++-- src/lib/edje/edje_util.c | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c index a5640d3..8000339 100644 --- a/src/lib/edje/edje_calc.c +++ b/src/lib/edje/edje_calc.c @@ -5382,6 +5382,7 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta * 20170725: fix to apply loop_delay even if there is no loop limit. * 20170725: restore ellipsis state of TEXT part when marquee mode is NONE. * 20170801: add text marquee duration set/get APIs for internal usages. + * 20170802: remove build warnings caused by unused parameter or variable. * **********************************************************************************/ #define EDJE_DEFAULT_FADE_IMAGE "edje_default_fade_image.png" @@ -5517,7 +5518,7 @@ _edje_text_ellipsize_remove(Edje_Real_Part *ep) /* Get alignment of ellipsize according to ellipsize.align and Text/Textblock's status */ static void -_edje_text_ellipsize_align_get(Edje_Real_Part *ep, Edje_Calc_Params *pf, Edje_Part_Description_Text *chosen_desc, double *halign, double *valign) +_edje_text_ellipsize_align_get(Edje_Real_Part *ep, Edje_Part_Description_Text *chosen_desc, double *halign, double *valign) { Evas_BiDi_Direction bidi_dir; Edje_Text_Ellipsize_Align ellip_align; @@ -6346,7 +6347,7 @@ _edje_text_ellipsize_apply(Edje *ed, Edje_Real_Part *ep, ellipsis_status = evas_object_text_ellipsis_status_get(ep->object); /* Get alignment of ellipsize according to ellipsize.align and Text/Textblock's status */ - _edje_text_ellipsize_align_get(ep, pf, chosen_desc, &halign, &valign); + _edje_text_ellipsize_align_get(ep, chosen_desc, &halign, &valign); /* Enable normal ellipsis and quit the function */ if (chosen_desc->text.ellipsize.mode == EDJE_TEXT_ELLIPSIZE_MODE_NORMAL) diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c index 8bfe47a..9d3135c 100644 --- a/src/lib/edje/edje_util.c +++ b/src/lib/edje/edje_util.c @@ -6992,7 +6992,6 @@ EOLIAN Eina_Bool _edje_object_part_text_marquee_duration_set(Eo *eo_obj EINA_UNUSED, Edje *ed, const char *part, double duration) { Edje_Real_Part *rp; - Edje_Part_Description_Text *desc; if (!part) return EINA_FALSE; rp = _edje_real_part_recursive_get(&ed, part); -- 2.7.4