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

gEDA-cvs: gaf.git: branch: master updated (1.6.1-20100214-121-g3b76382)



The branch, master has been updated
       via  3b76382b7624bd6f22c6e96353185d41053f5e15 (commit)
      from  9c42a66c0a985ef424f35ac93a289e82ef88b32b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gschem/include/gschem_struct.h |    2 --
 gschem/include/prototype.h     |    2 +-
 gschem/src/o_move.c            |    2 +-
 gschem/src/s_stretch.c         |   10 +---------
 4 files changed, 3 insertions(+), 13 deletions(-)


=================
 Commit Messages
=================

commit 3b76382b7624bd6f22c6e96353185d41053f5e15
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    gschem: Remove unused connection field from the STRETCH struct
    
    This field was only ever used for debug purposes, remove it.

:100644 100644 453b777... c4754cf... M	gschem/include/gschem_struct.h
:100644 100644 cf2c86d... cffe84d... M	gschem/include/prototype.h
:100644 100644 4e2d64e... ee0682f... M	gschem/src/o_move.c
:100644 100644 4fe472c... 987fe50... M	gschem/src/s_stretch.c

=========
 Changes
=========

commit 3b76382b7624bd6f22c6e96353185d41053f5e15
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    gschem: Remove unused connection field from the STRETCH struct
    
    This field was only ever used for debug purposes, remove it.

diff --git a/gschem/include/gschem_struct.h b/gschem/include/gschem_struct.h
index 453b777..c4754cf 100644
--- a/gschem/include/gschem_struct.h
+++ b/gschem/include/gschem_struct.h
@@ -215,7 +215,5 @@ struct st_gschem_toplevel {
 struct st_stretch
 {
   OBJECT *object;
-  CONN *connection;
-
   int whichone;
 };
diff --git a/gschem/include/prototype.h b/gschem/include/prototype.h
index cf2c86d..cffe84d 100644
--- a/gschem/include/prototype.h
+++ b/gschem/include/prototype.h
@@ -711,7 +711,7 @@ void o_undo_remove_last_undo(GSCHEM_TOPLEVEL *w_current);
 void usage(char *cmd);
 int parse_commandline(int argc, char *argv[]);
 /* s_stretch.c */
-GList *s_stretch_add(GList *list, OBJECT *object, CONN *connection, int whichone);
+GList *s_stretch_add(GList *list, OBJECT *object, int whichone);
 GList *s_stretch_remove(GList *list, OBJECT *object);
 void s_stretch_print_all(GList *list);
 void s_stretch_destroy_all(GList *list);
diff --git a/gschem/src/o_move.c b/gschem/src/o_move.c
index 4e2d64e..ee0682f 100644
--- a/gschem/src/o_move.c
+++ b/gschem/src/o_move.c
@@ -519,7 +519,7 @@ void o_move_check_endpoint(GSCHEM_TOPLEVEL *w_current, OBJECT * object)
 
     if (whichone >= 0 && whichone <= 1) {
       w_current->stretch_list = s_stretch_add (w_current->stretch_list,
-                                               other, c_current, whichone);
+                                               other, whichone);
     }
   }
 
diff --git a/gschem/src/s_stretch.c b/gschem/src/s_stretch.c
index 4fe472c..987fe50 100644
--- a/gschem/src/s_stretch.c
+++ b/gschem/src/s_stretch.c
@@ -33,8 +33,7 @@
  *  \par Function Description
  *
  */
-GList *s_stretch_add (GList *list, OBJECT *object,
-                      CONN *connection, int whichone)
+GList *s_stretch_add (GList *list, OBJECT *object, int whichone)
 {
   GList *s_iter;
   STRETCH *s_new;
@@ -49,7 +48,6 @@ GList *s_stretch_add (GList *list, OBJECT *object,
 
   s_new = g_malloc (sizeof (STRETCH));
   s_new->object = object;
-  s_new->connection = connection;
   s_new->whichone = whichone;
 
   return g_list_append (list, s_new);
@@ -109,12 +107,6 @@ void s_stretch_print_all (GList *list)
       printf("Object is NULL\n");
     }
 
-    if (s_current->connection) {
-      printf("Connection type: %d\n", s_current->connection->type);
-    } else {
-      printf("Connection is NULL\n");
-    }
-
     printf("which one: %d\n", s_current->whichone);
   }
   printf("DONE printing stretch ********************\n\n");




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs