From 8ff022bb31cb1585b44dceb7a12c461ee1869fa9 Mon Sep 17 00:00:00 2001 From: Subhransu Sekhar Mohanty Date: Tue, 3 Feb 2015 13:18:38 +0900 Subject: [PATCH] ector/software: warning fixed Change-Id: Ia55af328bf926ce58ced8674a1af24372b651546 --- src/lib/ector/software/ector_renderer_software_shape.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/lib/ector/software/ector_renderer_software_shape.c b/src/lib/ector/software/ector_renderer_software_shape.c index c8bd669..2688b0c 100644 --- a/src/lib/ector/software/ector_renderer_software_shape.c +++ b/src/lib/ector/software/ector_renderer_software_shape.c @@ -212,8 +212,6 @@ _ector_renderer_software_shape_ector_renderer_generic_base_prepare(Eo *obj, Ecto if (!pd->shape_data && pd->shape->path.cmd) { double *pts; - double current_x = 0, current_y = 0; - double current_ctrl_x = 0, current_ctrl_y = 0; unsigned int i; Eina_Bool close_path = EINA_FALSE; Outline * outline = _outline_create(); @@ -227,18 +225,12 @@ _ector_renderer_software_shape_ector_renderer_generic_base_prepare(Eo *obj, Ecto _outline_move_to(outline, pts[0], pts[1]); - current_ctrl_x = current_x = pts[0]; - current_ctrl_y = current_y = pts[1]; - pts += 2; break; case EFL_GRAPHICS_PATH_COMMAND_TYPE_LINE_TO: _outline_line_to(outline, pts[0], pts[1]); - current_ctrl_x = current_x = pts[0]; - current_ctrl_y = current_y = pts[1]; - pts += 2; break; case EFL_GRAPHICS_PATH_COMMAND_TYPE_CUBIC_TO: @@ -249,12 +241,6 @@ _ector_renderer_software_shape_ector_renderer_generic_base_prepare(Eo *obj, Ecto _outline_cubic_to(outline, pts[2], pts[3], pts[4], pts[5], // control points pts[0], pts[1]); // destination point - - current_ctrl_x = pts[4]; - current_ctrl_y = pts[5]; - current_x = pts[0]; - current_y = pts[1]; - pts += 6; break; @@ -285,7 +271,7 @@ _ector_renderer_software_shape_ector_renderer_generic_base_prepare(Eo *obj, Ecto } static Eina_Bool -_ector_renderer_software_shape_ector_renderer_generic_base_draw(Eo *obj, Ector_Renderer_Software_Shape_Data *pd, Ector_Rop op, Eina_Array *clips, int x, int y, unsigned int mul_col) +_ector_renderer_software_shape_ector_renderer_generic_base_draw(Eo *obj EINA_UNUSED, Ector_Renderer_Software_Shape_Data *pd, Ector_Rop op, Eina_Array *clips, int x, int y, unsigned int mul_col) { // TODO remove me when double to int conversion is fixed. //printf("%.0f",pd->base->origin.x); -- 2.7.4