Sun, 03 Oct 2021 15:40:38 +0200
remove unused cx_tree_last()
src/tree.c | file | annotate | diff | comparison | revisions |
--- a/src/tree.c Sun Oct 03 14:06:57 2021 +0200 +++ b/src/tree.c Sun Oct 03 15:40:38 2021 +0200 @@ -31,14 +31,6 @@ #define CX_TR_PTR(cur, off) ((void**)(((char*)cur)+off)) -void *cx_tree_last(void *node, ptrdiff_t loc_next) { - void *last; - do { - last = node; - } while ((node = *CX_TR_PTR(node, loc_next)) != NULL); - return last; -} - void cx_tree_add_sibling(void *node, ptrdiff_t loc_prev, ptrdiff_t loc_next, ptrdiff_t loc_parent, void *new_node) { cx_linked_list_add(&node, NULL, loc_prev, loc_next, new_node);