Thu, 11 Sep 2025 19:59:49 +0200
remove now unused destructor wrapper
relates to #461
src/kv_list.c | file | annotate | diff | comparison | revisions |
--- a/src/kv_list.c Wed Sep 10 19:15:58 2025 +0200 +++ b/src/kv_list.c Thu Sep 11 19:59:49 2025 +0200 @@ -71,25 +71,6 @@ } } -static void cx_kv_list_destructor_wrapper_map(void *list_ptr, void *node_data) { - const cx_kv_list *kv_list = list_ptr; - // the elem called with a map destructor is a pointer to the node - // we need to deref the elem accordingly - void *elem = kv_list->list.base.collection.store_pointer ? *(void**)node_data : node_data; - if (kv_list->list_destr) { - kv_list->list_destr(elem); - } - if (kv_list->list_destr2) { - kv_list->list_destr2(kv_list->list_destr_data, elem); - } - if (kv_list->map_destr) { - kv_list->map_destr(elem); - } - if (kv_list->map_destr2) { - kv_list->map_destr2(kv_list->map_destr_data, elem); - } -} - static void cx_kv_list_update_destructors(cx_kv_list *list) { // we copy the destructors to our custom fields and register // an own destructor function which invokes all these