src/kv_list.c

changeset 1369
a9989e16f7df
parent 1368
19025ca34caa
child 1370
607f822c79fe
--- 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

mercurial