src/linked_list.c

changeset 467
95e42a963520
parent 466
28bc3e10ac28
child 468
75ae1dccd101
     1.1 --- a/src/linked_list.c	Tue Oct 05 13:03:45 2021 +0200
     1.2 +++ b/src/linked_list.c	Tue Oct 05 13:04:20 2021 +0200
     1.3 @@ -332,24 +332,3 @@
     1.4  
     1.5      cxFree(list->allocator, list);
     1.6  }
     1.7 -
     1.8 -size_t cxLinkedListRecalculateSize(CxList list) {
     1.9 -    cx_linked_list *ll = (cx_linked_list *) list;
    1.10 -
    1.11 -    if (ll->begin == NULL) {
    1.12 -        ll->base.size = 0;
    1.13 -        ll->end = NULL;
    1.14 -        return 0;
    1.15 -    } else {
    1.16 -        cx_linked_list_node *cur = ll->begin;
    1.17 -        cx_linked_list_node *last;
    1.18 -        size_t size = 0;
    1.19 -        do {
    1.20 -            last = cur;
    1.21 -            size++;
    1.22 -        } while ((cur = cur->next) != NULL);
    1.23 -        ll->end = last;
    1.24 -        ll->base.size = size;
    1.25 -        return size;
    1.26 -    }
    1.27 -}

mercurial