[dia] [scan-build] Dead assignment



commit a84d2c48339f14c180a237783c28bd07e680b30a
Author: Hans Breuer <hans breuer org>
Date:   Wed Dec 30 14:16:28 2009 +0100

    [scan-build] Dead assignment
    
    No need to set p1, p2 from endpoints twice.

 objects/KAOS/metaandorrel.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/objects/KAOS/metaandorrel.c b/objects/KAOS/metaandorrel.c
index 438efbf..851d9d0 100644
--- a/objects/KAOS/metaandorrel.c
+++ b/objects/KAOS/metaandorrel.c
@@ -615,8 +615,6 @@ maor_update_data(Maor *maor)
   rectangle_union(&obj->bounding_box, &rect);
 
   /* Add boundingbox for end image: */
-  p1 = conn->endpoints[0];
-  p2 = conn->endpoints[1];
   p3.x=p1.x-MAOR_REF_WIDTH*1.1/2;    /* 1.1 factor to be safe (fix for or) */
   p3.y=p1.y-MAOR_REF_HEIGHT*1.1/2;
   p4.x=p3.x+MAOR_REF_WIDTH*1.1;



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