From 8563c685967702a2428dd3f3063e1361ebcf493a Mon Sep 17 00:00:00 2001 From: Yakov Goldberg Date: Mon, 30 Dec 2013 10:55:52 +0200 Subject: [PATCH] widget: remove unused return parameter in elm_wdg_orientation_set() --- src/lib/elm_widget.c | 7 ++----- src/lib/elm_widget.h | 3 +-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index 7486b48b4..eae2b68cd 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -4867,7 +4867,7 @@ _elm_widget_orientation_mode_disabled_set(Eo *obj, void *_pd, va_list *list) if (!sd_parent) orient_mode = 0; else orient_mode = sd_parent->orient_mode; } - eo_do(obj, elm_wdg_orientation_set(orient_mode, NULL)); + eo_do(obj, elm_wdg_orientation_set(orient_mode)); } EAPI Eina_Bool @@ -4894,7 +4894,7 @@ elm_widget_orientation_set(Evas_Object *obj, int rotation) ELM_WIDGET_CHECK(obj); ELM_WIDGET_DATA_GET(obj, sd); if ((sd->orient_mode == rotation) || (sd->orient_mode == -1)) return; - eo_do((Eo *) obj, elm_wdg_orientation_set(rotation, NULL)); + eo_do((Eo *) obj, elm_wdg_orientation_set(rotation)); } static void @@ -4903,7 +4903,6 @@ _elm_widget_orientation_set(Eo *obj, void *_pd, va_list *list) Evas_Object *child; Eina_List *l; int orient_mode = va_arg(*list, int); - Eina_Bool *ret = va_arg(*list, Eina_Bool *); Elm_Widget_Smart_Data *sd = _pd; sd->orient_mode = orient_mode; @@ -4917,8 +4916,6 @@ _elm_widget_orientation_set(Eo *obj, void *_pd, va_list *list) snprintf(buf, sizeof(buf), "elm,state,orient,%d", orient_mode); eo_do(obj, elm_wdg_signal_emit(buf, "elm")); } - - if (ret) *ret = EINA_TRUE; } static void diff --git a/src/lib/elm_widget.h b/src/lib/elm_widget.h index 1b7422d8e..7a9222022 100644 --- a/src/lib/elm_widget.h +++ b/src/lib/elm_widget.h @@ -2577,10 +2577,9 @@ typedef void * (*list_data_get_func_type)(const Eina_List * l); * No description supplied by the EAPI. * * @param[in] rotation - * @param[out] ret * */ -#define elm_wdg_orientation_set(rotation, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ORIENTATION_SET), EO_TYPECHECK(int, rotation), EO_TYPECHECK(Eina_Bool *, ret) +#define elm_wdg_orientation_set(rotation) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ORIENTATION_SET), EO_TYPECHECK(int, rotation) /** * @def elm_wdg_orientation_mode_disabled_set -- 2.34.1