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

gEDA-cvs: branch: master updated (1.1.2.20070818-31-g7f8f105)



The branch, master has been updated
       via  7f8f105c3fb9945ee02a4cf35a3cd762b0c6804c (commit)
       via  f8680ea938936bfd59c1c0f699c437de870a09eb (commit)
       via  a0d45936373d8c5e2f887f1330cbbc3b691e13cb (commit)
       via  f376f300980a0a4734e00d4c776bb829f9c36b96 (commit)
       via  e9ac00da9b2c75b3ccef3e729e43bb105d3e6e4a (commit)
      from  96495b7a87701b2ea8d7eb6b4da206d6c169a85c (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/prototype.h |    6 --
 libgeda/src/o_attrib.c      |  183 -------------------------------------------
 2 files changed, 0 insertions(+), 189 deletions(-)


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

commit 7f8f105c3fb9945ee02a4cf35a3cd762b0c6804c
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Wed Sep 5 14:19:25 2007 +0100

    Remove unused function o_attrib_reattach()

:100644 100644 9124883... b857ade... M	libgeda/include/prototype.h
:100644 100644 e167215... 41acaa9... M	libgeda/src/o_attrib.c

commit f8680ea938936bfd59c1c0f699c437de870a09eb
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Wed Sep 5 14:19:19 2007 +0100

    Remove unused functions o_attrib_copy() and o_attrib_copy_all().

:100644 100644 96d943d... 9124883... M	libgeda/include/prototype.h
:100644 100644 f846391... e167215... M	libgeda/src/o_attrib.c

commit a0d45936373d8c5e2f887f1330cbbc3b691e13cb
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Wed Sep 5 14:19:05 2007 +0100

    Remove unused function o_attrib_test_detach()

:100644 100644 525600b... 96d943d... M	libgeda/include/prototype.h
:100644 100644 5cd2f61... f846391... M	libgeda/src/o_attrib.c

commit f376f300980a0a4734e00d4c776bb829f9c36b96
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Wed Sep 5 14:19:00 2007 +0100

    Remove unused, empty function o_attrib_detach_all()

:100644 100644 d7d4744... 525600b... M	libgeda/include/prototype.h
:100644 100644 3a10cc7... 5cd2f61... M	libgeda/src/o_attrib.c

commit e9ac00da9b2c75b3ccef3e729e43bb105d3e6e4a
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Wed Sep 5 14:18:50 2007 +0100

    Remove unused function o_attrib_print_reverse()

:100644 100644 4e2382f... d7d4744... M	libgeda/include/prototype.h
:100644 100644 5e73dd2... 3a10cc7... M	libgeda/src/o_attrib.c

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

commit 7f8f105c3fb9945ee02a4cf35a3cd762b0c6804c
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Wed Sep 5 14:19:25 2007 +0100

    Remove unused function o_attrib_reattach()

diff --git a/libgeda/include/prototype.h b/libgeda/include/prototype.h
index 9124883..b857ade 100644
--- a/libgeda/include/prototype.h
+++ b/libgeda/include/prototype.h
@@ -174,7 +174,6 @@ int o_attrib_get_name_value(char *string, char **name, char **value);
 void o_attrib_free_current(TOPLEVEL *toplevel);
 void o_attrib_set_string(TOPLEVEL *toplevel, char *string);
 OBJECT *o_attrib_return_parent(ATTRIB *attribute);
-void o_attrib_reattach(ATTRIB *attributes);
 void o_attrib_set_color(TOPLEVEL *toplevel, ATTRIB *attributes);
 char *o_attrib_search_name(OBJECT *list, char *name, int counter);
 OBJECT *o_attrib_search_string_list(OBJECT *list, char *string);
diff --git a/libgeda/src/o_attrib.c b/libgeda/src/o_attrib.c
index e167215..41acaa9 100644
--- a/libgeda/src/o_attrib.c
+++ b/libgeda/src/o_attrib.c
@@ -938,31 +938,6 @@ OBJECT *o_attrib_return_parent(ATTRIB *attribute)
   return(a_current->object);	
 }
 
-/*! \brief Reattach attributes.
- *  \par Function Description
- *  Reattach attributes.
- *
- *  \param [in] attributes  ATTRIB list to reattach.
- */
-void o_attrib_reattach(ATTRIB *attributes) 
-{
-  ATTRIB *a_current=NULL;
-
-  a_current = attributes;
-	
-  /* skip over head node */
-  if (a_current)
-  a_current = a_current->next;
-
-  while (a_current != NULL) {
-    if (a_current->object)  {
-      a_current->object->attached_to = a_current;
-      a_current->object->attribute = 1;
-    }
-    a_current = a_current->next;	
-  }
-}
-
 /*! \brief Set attribute color
  *  \par Function Description
  *  This function sets all attribute objects to the right

commit f8680ea938936bfd59c1c0f699c437de870a09eb
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Wed Sep 5 14:19:19 2007 +0100

    Remove unused functions o_attrib_copy() and o_attrib_copy_all().

diff --git a/libgeda/include/prototype.h b/libgeda/include/prototype.h
index 96d943d..9124883 100644
--- a/libgeda/include/prototype.h
+++ b/libgeda/include/prototype.h
@@ -162,7 +162,6 @@ void o_attrib_select_draw(ATTRIB *list);
 void o_attrib_unselect_draw(ATTRIB *list);
 void o_attrib_free_all(TOPLEVEL *toplevel, ATTRIB *list);
 void o_attrib_print(ATTRIB *attributes);
-ATTRIB *o_attrib_copy(ATTRIB *list);
 void o_attrib_delete(ATTRIB *a_current);
 void o_attrib_remove(ATTRIB *list, ATTRIB *remove);
 OBJECT *o_read_attribs(TOPLEVEL *toplevel,
@@ -175,7 +174,6 @@ int o_attrib_get_name_value(char *string, char **name, char **value);
 void o_attrib_free_current(TOPLEVEL *toplevel);
 void o_attrib_set_string(TOPLEVEL *toplevel, char *string);
 OBJECT *o_attrib_return_parent(ATTRIB *attribute);
-ATTRIB *o_attrib_copy_all(TOPLEVEL *toplevel, OBJECT *attached_to, ATTRIB *attributes);
 void o_attrib_reattach(ATTRIB *attributes);
 void o_attrib_set_color(TOPLEVEL *toplevel, ATTRIB *attributes);
 char *o_attrib_search_name(OBJECT *list, char *name, int counter);
diff --git a/libgeda/src/o_attrib.c b/libgeda/src/o_attrib.c
index f846391..e167215 100644
--- a/libgeda/src/o_attrib.c
+++ b/libgeda/src/o_attrib.c
@@ -492,21 +492,6 @@ void o_attrib_print(ATTRIB *attributes)
   }
 }
 
-/*! \todo Empty function.
- *  \brief
- *  \par Function Description
- *
- *  \param [in] list  The attribute list to copy.
- *  \return Always NULL.
- *
- *  \note
- *  very hard, I don't think we need it though
- */
-ATTRIB *o_attrib_copy(ATTRIB *list)
-{
-  return(NULL);
-}
-
 /*! \brief Delete an attribute.
  *  \par Function Description
  *  This function goes out and removes the current attribute,
@@ -953,68 +938,6 @@ OBJECT *o_attrib_return_parent(ATTRIB *attribute)
   return(a_current->object);	
 }
 
-/*! \brief Copy all attributes.
- *  \par Function Description
- *  This function will copy all attributes from the provided list
- *  by attaching them to the provided OBJECT list.
- *
- *  \param [in]  toplevel    The TOPLEVEL object.
- *  \param [out] attached_to  OBJECT list to copy attributes to.
- *  \param [in]  attributes   ATTRIB list to copy attributes from.
- *  \return new attribute list.
- */
-ATTRIB *o_attrib_copy_all(TOPLEVEL *toplevel, OBJECT *attached_to,
-			  ATTRIB *attributes) 
-{
-  ATTRIB *a_current=NULL;
-  ATTRIB *a_head=NULL;
-  ATTRIB *a_new=NULL;
-  ATTRIB *a_prev=NULL;
-
-  a_current = attributes;
-
-  while (a_current != NULL) {
-	
-    a_new = (ATTRIB *) g_malloc(sizeof(ATTRIB));
-	
-    /* in the case of the head attrib node, object points to 
-     * the parent which the attributes are attached to */	
-    if (a_head == NULL) {
-      a_new->object = attached_to;
-    } else {
-      a_new->object = a_current->object;  
-    }
-		
-
-		
-    /* object is not null and a_start is not null (ie we are not 
-     * messing with the head attrib node) 
-     */
-    if (a_new->object && a_head != NULL)  {
-      a_new->object->attached_to = a_new;
-    }
-
-    a_new->copied_to = a_current->copied_to;  
-
-    a_new->prev = a_prev; 
-	
-    /* set previous's next pointer */
-    /* if it's null that means we are at the first attrib */
-    if (a_prev) {
-      a_prev->next = a_new;
-    } else {
-      a_head = a_new;
-    }
-	
-    a_new->next = NULL;
-    a_prev = a_new;
-    a_current = a_current->next;	
-  }	
-
-  /* should be pointing to the head node */
-  return(a_head);	
-}
-
 /*! \brief Reattach attributes.
  *  \par Function Description
  *  Reattach attributes.

commit a0d45936373d8c5e2f887f1330cbbc3b691e13cb
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Wed Sep 5 14:19:05 2007 +0100

    Remove unused function o_attrib_test_detach()

diff --git a/libgeda/include/prototype.h b/libgeda/include/prototype.h
index 525600b..96d943d 100644
--- a/libgeda/include/prototype.h
+++ b/libgeda/include/prototype.h
@@ -157,7 +157,6 @@ ATTRIB *add_attrib_head(OBJECT *parent);
 ATTRIB *o_attrib_add(TOPLEVEL *toplevel, ATTRIB *list_head, OBJECT *item);
 void o_attrib_free(TOPLEVEL *toplevel, ATTRIB *current);
 void o_attrib_attach(TOPLEVEL *toplevel, OBJECT *parent_list, OBJECT *text_object, OBJECT *object);
-void o_attrib_detach_test(TOPLEVEL *toplevel, OBJECT *list, OBJECT *items);
 void o_attrib_edit(OBJECT *list, OBJECT *item);
 void o_attrib_select_draw(ATTRIB *list);
 void o_attrib_unselect_draw(ATTRIB *list);
diff --git a/libgeda/src/o_attrib.c b/libgeda/src/o_attrib.c
index 5cd2f61..f846391 100644
--- a/libgeda/src/o_attrib.c
+++ b/libgeda/src/o_attrib.c
@@ -399,29 +399,6 @@ void o_attrib_attach(TOPLEVEL *toplevel, OBJECT *parent_list,
  *  \brief
  *  \par Function Description
  *
- *  \param [in] toplevel  The TOPLEVEL object.
- *  \param [in] list
- *  \param [in] items
- */
-void
-o_attrib_detach_test(TOPLEVEL *toplevel, OBJECT *list, OBJECT *items)
-{
-
-/* this all needs to be rethought out */
-	/* loop over items till NULL */
-		/* Search for item in object->attrib */
-		/* o_attrib_search(list->attribs, current_item) */
-			/* if found */
-				/*call o_attrib_remove(object->attributes, current_item->attrib_struct);*/
-			/* if not found */
-				/* do nothing */
-
-}
-
-/*! \todo Empty function.
- *  \brief
- *  \par Function Description
- *
  *  \param [in] list
  *  \param [in] item
  */

commit f376f300980a0a4734e00d4c776bb829f9c36b96
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Wed Sep 5 14:19:00 2007 +0100

    Remove unused, empty function o_attrib_detach_all()

diff --git a/libgeda/include/prototype.h b/libgeda/include/prototype.h
index d7d4744..525600b 100644
--- a/libgeda/include/prototype.h
+++ b/libgeda/include/prototype.h
@@ -166,7 +166,6 @@ void o_attrib_print(ATTRIB *attributes);
 ATTRIB *o_attrib_copy(ATTRIB *list);
 void o_attrib_delete(ATTRIB *a_current);
 void o_attrib_remove(ATTRIB *list, ATTRIB *remove);
-void o_attrib_detach_all(TOPLEVEL *toplevel, OBJECT *object_list, OBJECT *main_head);
 OBJECT *o_read_attribs(TOPLEVEL *toplevel,
 		       OBJECT *object_to_get_attribs, 
 		       TextBuffer *tb,
diff --git a/libgeda/src/o_attrib.c b/libgeda/src/o_attrib.c
index 3a10cc7..5cd2f61 100644
--- a/libgeda/src/o_attrib.c
+++ b/libgeda/src/o_attrib.c
@@ -592,39 +592,6 @@ void o_attrib_remove(ATTRIB *list, ATTRIB *remove)
   }
 }
 
-/*! \todo Is this function used?
- *  \deprecated
- *  \brief Detach all attributes from a list.
- *  \par Function Description
- *  Detach all attributes from a list.
- *
- *  \param [in] toplevel    The TOPLEVEL object.
- *  \param [in] object_list  Attribute list to delete.
- *  \param [in] main_head    The head of the attribute list.
- */
-void o_attrib_detach_all(TOPLEVEL *toplevel, OBJECT *object_list, OBJECT *main_head)
-{
-#if 0 /* not used */
-  OBJECT *o_current=NULL;
-
-  o_current = object_list;
-
-  while(o_current != NULL) {
-
-    X = (OBJECT *) o_list_search(main_head, o_current);
-
-    if (X) {
-      if (X->attribs != NULL) {
-        o_attrib_free_all(toplevel, X->attribs);
-        X->attribs = NULL; /* leak possible? */
-        toplevel->page_current->CHANGED=1;
-      }
-    }
-    o_current = o_current->next;
-  }
-#endif
-}
-
 /*! \brief Read attributes from a buffer.
  *  \par Function Description
  *  Read attributes from a TextBuffer.

commit e9ac00da9b2c75b3ccef3e729e43bb105d3e6e4a
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Wed Sep 5 14:18:50 2007 +0100

    Remove unused function o_attrib_print_reverse()

diff --git a/libgeda/include/prototype.h b/libgeda/include/prototype.h
index 4e2382f..d7d4744 100644
--- a/libgeda/include/prototype.h
+++ b/libgeda/include/prototype.h
@@ -163,7 +163,6 @@ void o_attrib_select_draw(ATTRIB *list);
 void o_attrib_unselect_draw(ATTRIB *list);
 void o_attrib_free_all(TOPLEVEL *toplevel, ATTRIB *list);
 void o_attrib_print(ATTRIB *attributes);
-void o_attrib_print_reverse(ATTRIB *attributes);
 ATTRIB *o_attrib_copy(ATTRIB *list);
 void o_attrib_delete(ATTRIB *a_current);
 void o_attrib_remove(ATTRIB *list, ATTRIB *remove);
diff --git a/libgeda/src/o_attrib.c b/libgeda/src/o_attrib.c
index 5e73dd2..3a10cc7 100644
--- a/libgeda/src/o_attrib.c
+++ b/libgeda/src/o_attrib.c
@@ -515,31 +515,6 @@ void o_attrib_print(ATTRIB *attributes)
   }
 }
 
-/*! \brief Print all attributes in reverse order to a Postscript document.
- *  \par Function Description
- *  Print all attributes in reverse order to a Postscript document.
- *
- *  \param [in] attributes  List of attributes to print.
- */
-void o_attrib_print_reverse(ATTRIB *attributes) 
-{
-  ATTRIB *a_current;
-
-  a_current = o_attrib_return_tail(attributes);
-
-  while (a_current != NULL) {
-    printf("Attribute points to: %s\n", a_current->object->name);
-    if (a_current->object && a_current->object->text) {
-      printf("\tText is: %s\n", a_current->object->text->string);
-    }
-
-    if (!a_current->object) {
-      printf("oops found a null attrib object\n");
-    }
-    a_current = a_current->prev;
-  }
-}
-
 /*! \todo Empty function.
  *  \brief
  *  \par Function Description




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