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

gEDA-cvs: gaf.git: branch: master updated (1.5.2-20090328-26-g52bed9a)



The branch, master has been updated
       via  52bed9acb6ac46882d6d2ca431167cf1b00e53b4 (commit)
      from  19d6f815561d0cf903a648bcc96fac67d76d5f96 (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
=========

 libgeda/include/libgeda/prototype.h |    1 -
 libgeda/src/o_complex_basic.c       |   40 -----------------------------------
 2 files changed, 0 insertions(+), 41 deletions(-)


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

commit 52bed9acb6ac46882d6d2ca431167cf1b00e53b4
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    libgeda: Remove unused function o_complex_count_pins()

:100644 100644 baf0c8e... f76f35b... M	libgeda/include/libgeda/prototype.h
:100644 100644 5495deb... fff1bee... M	libgeda/src/o_complex_basic.c

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

commit 52bed9acb6ac46882d6d2ca431167cf1b00e53b4
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    libgeda: Remove unused function o_complex_count_pins()

diff --git a/libgeda/include/libgeda/prototype.h b/libgeda/include/libgeda/prototype.h
index baf0c8e..f76f35b 100644
--- a/libgeda/include/libgeda/prototype.h
+++ b/libgeda/include/libgeda/prototype.h
@@ -191,7 +191,6 @@ OBJECT *o_complex_return_nth_pin(GList *list, int counter);
 void o_complex_rotate_world(TOPLEVEL *toplevel, int world_centerx, int world_centery, int angle, OBJECT *object);
 void o_complex_mirror_world(TOPLEVEL *toplevel, int world_centerx, int world_centery, OBJECT *object);
 OBJECT *o_complex_return_pin_object(OBJECT *object, char *pin);
-int  o_complex_count_pins(OBJECT *object);
 void o_complex_check_symversion(TOPLEVEL* toplevel, OBJECT* object);
 
 /* o_embed.c */
diff --git a/libgeda/src/o_complex_basic.c b/libgeda/src/o_complex_basic.c
index 5495deb..fff1bee 100644
--- a/libgeda/src/o_complex_basic.c
+++ b/libgeda/src/o_complex_basic.c
@@ -1322,46 +1322,6 @@ OBJECT *o_complex_return_pin_object(OBJECT *object, char *pin)
   return(NULL);
 }
 
-/*! \brief Counts pins on complex object
- *  \par Given a pointer to a complex object (sch level
- *  component object), this fcn iterates through the prim_objs
- *  list counting the number of pins it finds.
- *
- *  \param [in] object pointer to complex object
- *  \return integer number of pins counted.
- */
-int o_complex_count_pins(OBJECT *object) 
-{
-  OBJECT *o_current=NULL;
-  int pin_counter=0;
-  GList *iter;
-
-  g_return_val_if_fail(object != NULL, 0);
-  g_return_val_if_fail(((object->type == OBJ_COMPLEX) ||
-			(object->type == OBJ_PLACEHOLDER)) , 0);
-  g_return_val_if_fail(object->complex != NULL, 0);
-
-
-  /* go inside complex object.  This means that we grab
-   * a pointer to the head of the prim_objs list.
-   * These are the graphical items stored in the lower-level
-   * file (usually, objects from the .sym file).
-   * Then iterate over this list looking for pins and
-   * counting them. */
-  iter = object->complex->prim_objs;
-
-  while ( iter != NULL ) {
-    o_current = (OBJECT *)iter->data;
-    switch(o_current->type) {
-      case(OBJ_PIN):
-
-	pin_counter++;
-        break;
-    }
-    iter = g_list_next (iter);
-  }
-  return(pin_counter);
-}
 
 /*! \brief check the symversion of a complex object
  *  \par Function Description




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