[dia] [warningectomy] variable ‘click_distanc e’ set but not used



commit 819dd69a707169e31a14f02bb26c2f1e1b027802
Author: Hans Breuer <hans breuer org>
Date:   Sat May 4 19:31:32 2013 +0200

    [warningectomy] variable ‘click_distance’ set but not used
    
    no idea what it was supposed to be used for

 app/create_object.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/app/create_object.c b/app/create_object.c
index 84058c6..6804123 100644
--- a/app/create_object.c
+++ b/app/create_object.c
@@ -50,7 +50,6 @@ create_object_button_press(CreateObjectTool *tool, GdkEventButton *event,
   Handle *handle1;
   Handle *handle2;
   DiaObject *obj;
-  real click_distance;
 
   ddisplay_untransform_coords(ddisp,
                              (int)event->x, (int)event->y,
@@ -60,8 +59,6 @@ create_object_button_press(CreateObjectTool *tool, GdkEventButton *event,
 
   snap_to_grid(ddisp, &clickedpoint.x, &clickedpoint.y);
 
-  click_distance = ddisplay_untransform_length(ddisp, 3.0);
-
   obj = dia_object_default_create (tool->objtype, &clickedpoint,
                                    tool->user_data,
                                    &handle1, &handle2);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]