[dia] Remove dead code using obj->onnections



commit f67604f93233f8ad2ec6df1acc51fb73cb76758f
Author: Hans Breuer <hans breuer org>
Date:   Sun Sep 12 21:32:47 2010 +0200

    Remove dead code using obj->onnections

 app/modify_tool.c |   23 -----------------------
 1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/app/modify_tool.c b/app/modify_tool.c
index ecc037b..c82892f 100644
--- a/app/modify_tool.c
+++ b/app/modify_tool.c
@@ -107,29 +107,6 @@ free_modify_tool(Tool *tool)
   g_free(mtool);
 }
 
-/*
-  This function is buggy. Fix it later!
-static void
-transitive_select(DDisplay *ddisp, Point *clickedpoint, DiaObject *obj)
-{
-  guint i;
-  GList *j;
-  DiaObject *obj1;
-
-  for(i = 0; i < obj->num_connections; i++) {
-    printf("%d\n", i);
-    j = obj->connections[i]->connected;
-    while(j != NULL && (obj1 = (DiaObject *)j->data) != NULL) {
-      diagram_select(ddisp->diagram, obj1);
-      obj1->ops->select(obj1, clickedpoint,
-			(Renderer *)ddisp->renderer);
-      transitive_select(ddisp, clickedpoint, obj1);
-      j = g_list_next(j);
-    }
-  }
-}
-*/
-
 static DiaObject *
 click_select_object(DDisplay *ddisp, Point *clickedpoint,
 		    GdkEventButton *event)



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