seoz pushed a commit to branch master.
commit cd2db06b27faa734a7dfaa8eab446e71e6aa74a7
Author: Daniel Juyung Seo <[email protected]>
Date: Sun Mar 3 00:40:07 2013 +0900
elm elm_spinner.c: Removed unnecessary local variable.
Removed local variable "offset".
---
src/lib/elm_spinner.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
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);
--
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb