[dia] [scan-build] Dead assignment and increment



commit 53f56a95403be537453e1f050eb65c9e2d658727
Author: Hans Breuer <hans breuer org>
Date:   Wed Dec 30 18:04:11 2009 +0100

    [scan-build] Dead assignment and increment
    
    Value stored to 'n' is never read

 lib/neworth_conn.c |    1 -
 lib/orth_conn.c    |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/lib/neworth_conn.c b/lib/neworth_conn.c
index bd3b1d0..28ea125 100644
--- a/lib/neworth_conn.c
+++ b/lib/neworth_conn.c
@@ -188,7 +188,6 @@ neworthconn_move_handle(NewOrthConn *orth, Handle *handle,
     } 
     break;
   case HANDLE_MIDPOINT:
-    n = orth->numpoints - 1;
     handle_nr = get_handle_nr(orth, handle);
 
     switch (orth->orientation[handle_nr]) {
diff --git a/lib/orth_conn.c b/lib/orth_conn.c
index c6c4527..64cb3dc 100644
--- a/lib/orth_conn.c
+++ b/lib/orth_conn.c
@@ -204,7 +204,6 @@ orthconn_move_handle(OrthConn *orth, Handle *handle,
     }
     break;
   case HANDLE_MIDPOINT:
-    n = orth->numpoints - 1;
     handle_nr = get_handle_nr(orth, handle);
     if (orth->autorouting)
       change = orthconn_set_autorouting(orth, FALSE);



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