From: Daniel Juyung Seo Date: Sat, 2 Mar 2013 15:40:07 +0000 (+0900) Subject: elm elm_spinner.c: Removed unnecessary local variable. X-Git-Tag: submit/efl/20131021.015827~868 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd2db06b27faa734a7dfaa8eab446e71e6aa74a7;p=platform%2Fupstream%2Felementary.git elm elm_spinner.c: Removed unnecessary local variable. Removed local variable "offset". --- diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c index 765f589..1727363 100644 --- a/src/lib/elm_spinner.c +++ b/src/lib/elm_spinner.c @@ -159,7 +159,7 @@ _drag_cb(void *data, const char *emission __UNUSED__, const char *source __UNUSED__) { - double pos = 0.0, offset, delta; + double pos = 0.0, delta; Evas_Object *obj = data; Eina_Bool ret = EINA_FALSE; @@ -170,8 +170,7 @@ _drag_cb(void *data, eo_do((Eo *)wd->resize_obj, edje_obj_part_drag_value_get("elm.dragable.slider", &pos, NULL, &ret)); - offset = sd->step * _elm_config->scale; - delta = pos * offset; + delta = pos * sd->step * _elm_config->scale; /* If we are on rtl mode, change the delta to be negative on such changes */ if (elm_widget_mirrored_get(obj)) delta *= -1; if (_value_set(data, sd->drag_start_val + delta)) _label_write(data);