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

gEDA-cvs: pcb.git: branch: master updated (39dd5f6cd91ec9032c6d2e3ca543e3f8f6cf0e4a)



The branch, master has been updated
       via  39dd5f6cd91ec9032c6d2e3ca543e3f8f6cf0e4a (commit)
      from  10d0e70387511945f58e7c4a1635b59528dc216c (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
=========

 src/rtree.c |   38 --------------------------------------
 src/rtree.h |    2 --
 2 files changed, 0 insertions(+), 40 deletions(-)


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

commit 39dd5f6cd91ec9032c6d2e3ca543e3f8f6cf0e4a
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    rtree.c: Remove unused r_substitute() function
    
    This function was used to update r-trees when they contained objects
    changed memory location. Since we no longer shuffle objects around when
    we delete them, this function is no longer required.

:100644 100644 83ec41c... 526d2b7... M	src/rtree.c
:100644 100644 3e91297... 862bbe9... M	src/rtree.h

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

commit 39dd5f6cd91ec9032c6d2e3ca543e3f8f6cf0e4a
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    rtree.c: Remove unused r_substitute() function
    
    This function was used to update r-trees when they contained objects
    changed memory location. Since we no longer shuffle objects around when
    we delete them, this function is no longer required.

diff --git a/src/rtree.c b/src/rtree.c
index 83ec41c..526d2b7 100644
--- a/src/rtree.c
+++ b/src/rtree.c
@@ -1106,41 +1106,3 @@ r_delete_entry (rtree_t * rtree, const BoxType * box)
 #endif
   return r;
 }
-
-int
-__r_sub (struct rtree_node *node, const BoxType * b, const BoxType * a,
-         jmp_buf * e)
-{
-  int i;
-
-  if (node->flags.is_leaf)
-    {
-      for (i = 0; i < M_SIZE; i++)
-        if (node->u.rects[i].bptr == b)
-          {
-            node->u.rects[i].bptr = a;
-            assert (a->X1 == node->u.rects[i].bounds.X1);
-            assert (a->X2 == node->u.rects[i].bounds.X2);
-            assert (a->Y1 == node->u.rects[i].bounds.Y1);
-            assert (a->Y2 == node->u.rects[i].bounds.Y2);
-            longjmp (*e, 1);
-          }
-      return 0;
-    }
-  for (i = 0; i < M_SIZE; i++)
-    if (node->u.kids[i] && __r_sub (node->u.kids[i], b, a, e))
-      return 1;
-  return 0;
-}
-
-
-void
-r_substitute (rtree_t * rtree, const BoxType * before, const BoxType * after)
-{
-  jmp_buf env;
-
-  if (before == after)
-    return;
-  if (setjmp (env) == 0)
-    __r_sub (rtree->root, before, after, &env);
-}
diff --git a/src/rtree.h b/src/rtree.h
index 3e91297..862bbe9 100644
--- a/src/rtree.h
+++ b/src/rtree.h
@@ -49,8 +49,6 @@ void r_destroy_tree (rtree_t ** rtree);
 
 bool r_delete_entry (rtree_t * rtree, const BoxType * which);
 void r_insert_entry (rtree_t * rtree, const BoxType * which, int manage);
-void r_substitute (rtree_t * rtree, const BoxType * before,
-		   const BoxType * after);
 
 /* generic search routine */
 /* region_in_search should return true if "what you're looking for" is




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