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; - } -}