[dia] [scan-build] Dead assignment



commit 1dcf3e96c345f9d60ca7d1a0f7558515009670f1
Author: Hans Breuer <hans breuer org>
Date:   Tue Dec 29 12:51:56 2009 +0100

    [scan-build] Dead assignment
    
    remove unused newobj variable

 objects/ER/participation.c    |    2 --
 objects/UML/association.c     |    2 --
 objects/standard/beziergon.c  |    2 --
 objects/standard/polygon.c    |    2 --
 objects/standard/zigzagline.c |    2 --
 5 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/objects/ER/participation.c b/objects/ER/participation.c
index 0dd174b..acf68da 100644
--- a/objects/ER/participation.c
+++ b/objects/ER/participation.c
@@ -331,13 +331,11 @@ participation_copy(Participation *participation)
 {
   Participation *newparticipation;
   OrthConn *orth, *neworth;
-  DiaObject *newobj;
   
   orth = &participation->orth;
   
   newparticipation = g_malloc0(sizeof(Participation));
   neworth = &newparticipation->orth;
-  newobj = &neworth->object;
 
   orthconn_copy(orth, neworth);
 
diff --git a/objects/UML/association.c b/objects/UML/association.c
index 058e171..713ac2d 100644
--- a/objects/UML/association.c
+++ b/objects/UML/association.c
@@ -896,14 +896,12 @@ association_copy(Association *assoc)
 {
   Association *newassoc;
   OrthConn *orth, *neworth;
-  DiaObject *newobj;
   int i;
   
   orth = &assoc->orth;
   
   newassoc = g_malloc0(sizeof(Association));
   neworth = &newassoc->orth;
-  newobj = &neworth->object;
 
   orthconn_copy(orth, neworth);
 
diff --git a/objects/standard/beziergon.c b/objects/standard/beziergon.c
index 6780d43..9c4916c 100644
--- a/objects/standard/beziergon.c
+++ b/objects/standard/beziergon.c
@@ -321,13 +321,11 @@ beziergon_copy(Beziergon *beziergon)
 {
   Beziergon *newbeziergon;
   BezierShape *bezier, *newbezier;
-  DiaObject *newobj;
 
   bezier = &beziergon->bezier;
  
   newbeziergon = g_malloc0(sizeof(Beziergon));
   newbezier = &newbeziergon->bezier;
-  newobj = &newbezier->object;
 
   beziershape_copy(bezier, newbezier);
 
diff --git a/objects/standard/polygon.c b/objects/standard/polygon.c
index 3ee4378..193f4d4 100644
--- a/objects/standard/polygon.c
+++ b/objects/standard/polygon.c
@@ -306,13 +306,11 @@ polygon_copy(Polygon *polygon)
 {
   Polygon *newpolygon;
   PolyShape *poly, *newpoly;
-  DiaObject *newobj;
 
   poly = &polygon->poly;
  
   newpolygon = g_malloc0(sizeof(Polygon));
   newpoly = &newpolygon->poly;
-  newobj = &newpoly->object;
 
   polyshape_copy(poly, newpoly);
 
diff --git a/objects/standard/zigzagline.c b/objects/standard/zigzagline.c
index 8f256d1..9ee9f9e 100644
--- a/objects/standard/zigzagline.c
+++ b/objects/standard/zigzagline.c
@@ -292,13 +292,11 @@ zigzagline_copy(Zigzagline *zigzagline)
 {
   Zigzagline *newzigzagline;
   OrthConn *orth, *neworth;
-  DiaObject *newobj;
   
   orth = &zigzagline->orth;
  
   newzigzagline = g_malloc0(sizeof(Zigzagline));
   neworth = &newzigzagline->orth;
-  newobj = &neworth->object;
 
   orthconn_copy(orth, neworth);
 



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