[dia] [warningectomy] variable ‘dist’ set but not used
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] variable ‘dist’ set but not used
- Date: Sat, 4 May 2013 19:01:01 +0000 (UTC)
commit dd7b1b335394a265d81f67050c3ace3c1ea4ac24
Author: Hans Breuer <hans breuer org>
Date: Sat May 4 19:22:13 2013 +0200
[warningectomy] variable ‘dist’ set but not used
diagram_find_closest_handle () only called for the handle
app/modify_tool.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/app/modify_tool.c b/app/modify_tool.c
index 9b7643d..c4eff80 100644
--- a/app/modify_tool.c
+++ b/app/modify_tool.c
@@ -215,11 +215,9 @@ static int do_if_clicked_handle(DDisplay *ddisp, ModifyTool *tool,
{
DiaObject *obj;
Handle *handle;
- real dist;
handle = NULL;
- dist = diagram_find_closest_handle(ddisp->diagram, &handle,
- &obj, clickedpoint);
+ diagram_find_closest_handle(ddisp->diagram, &handle, &obj, clickedpoint);
if (handle_is_clicked(ddisp, handle, clickedpoint)) {
tool->state = STATE_MOVE_HANDLE;
tool->break_connections = TRUE;
@@ -427,8 +425,8 @@ modify_motion(ModifyTool *tool, GdkEventMotion *event,
if (tool->state==STATE_NONE) {
DiaObject *obj = NULL;
Handle *handle = NULL;
- real dist;
- dist = diagram_find_closest_handle (ddisp->diagram, &handle, &obj, &to);
+
+ diagram_find_closest_handle (ddisp->diagram, &handle, &obj, &to);
if (handle && handle->type != HANDLE_NON_MOVABLE
&& handle->id >= HANDLE_RESIZE_NW && handle->id <= HANDLE_RESIZE_SE
&& handle_is_clicked(ddisp, handle, &to)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]