[dia] [scan-build] Dead assignment



commit 47de2cdba83ffc85029130e92c0c3d83a8fdad91
Author: Hans Breuer <hans breuer org>
Date:   Wed Dec 30 19:39:46 2009 +0100

    [scan-build] Dead assignment
    
    Value stored to 'obj' is never read

 objects/Database/table_dialog.c |    3 ---
 objects/SISSI/sissi_dialog.c    |    2 --
 2 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/objects/Database/table_dialog.c b/objects/Database/table_dialog.c
index 4d24f93..60289cc 100644
--- a/objects/Database/table_dialog.c
+++ b/objects/Database/table_dialog.c
@@ -454,14 +454,11 @@ attribute_page_props_to_object (Table * table, TablePropDialog * prop_dialog)
   GList * clear_list = NULL;
   TableAttribute * attr;
   GtkWidget * list_item;
-  DiaObject * obj;
   ConnectionPoint * cp;
 
   /* if there is any currently edited item ... update its values */
   attributes_page_update_cur_attr_item (prop_dialog);
 
-  obj = &table->element.object;
-
   /* free current attributes */
   list = table->attributes;
   while (list != NULL)
diff --git a/objects/SISSI/sissi_dialog.c b/objects/SISSI/sissi_dialog.c
index 24a1caa..cdd6a2f 100644
--- a/objects/SISSI/sissi_dialog.c
+++ b/objects/SISSI/sissi_dialog.c
@@ -1102,7 +1102,6 @@ ObjectChange *
 object_sissi_apply_properties_dialog(ObjetSISSI *object_sissi)
 {
   SISSIDialog *prop_dialog;
-  DiaObject *obj;
   GList *added = NULL;
   GList *deleted = NULL;
   GList *disconnected = NULL;
@@ -1112,7 +1111,6 @@ object_sissi_apply_properties_dialog(ObjetSISSI *object_sissi)
 
   g_return_val_if_fail(prop_dialog != NULL, NULL);
 
-  obj = &object_sissi->element.object;
   properties_menaces_read_from_dialog(object_sissi, prop_dialog);
   properties_others_read_from_dialog(object_sissi, prop_dialog);
   document_read_from_dialog(object_sissi, prop_dialog);



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