# HG changeset patch # User Mike Becker # Date 1633431860 -7200 # Node ID 95e42a96352036d63b055632c2c19eef9751ac3b # Parent 28bc3e10ac280db0e6dbeb873f6ea83b9655c1ca remove unused cxLinkedListRecalculateSize() It is not clear what this function was ever supposed to do. diff -r 28bc3e10ac28 -r 95e42a963520 src/cx/linked_list.h --- a/src/cx/linked_list.h Tue Oct 05 13:03:45 2021 +0200 +++ b/src/cx/linked_list.h Tue Oct 05 13:04:20 2021 +0200 @@ -77,9 +77,6 @@ */ void cxLinkedListDestroy(CxList list); -size_t cxLinkedListRecalculateSize(CxList list); - - /** * Finds the node at a certain index. * diff -r 28bc3e10ac28 -r 95e42a963520 src/linked_list.c --- a/src/linked_list.c Tue Oct 05 13:03:45 2021 +0200 +++ b/src/linked_list.c Tue Oct 05 13:04:20 2021 +0200 @@ -332,24 +332,3 @@ cxFree(list->allocator, list); } - -size_t cxLinkedListRecalculateSize(CxList list) { - cx_linked_list *ll = (cx_linked_list *) list; - - if (ll->begin == NULL) { - ll->base.size = 0; - ll->end = NULL; - return 0; - } else { - cx_linked_list_node *cur = ll->begin; - cx_linked_list_node *last; - size_t size = 0; - do { - last = cur; - size++; - } while ((cur = cur->next) != NULL); - ll->end = last; - ll->base.size = size; - return size; - } -}