add TODOs for using modern ucx features dav-2

Tue, 14 Oct 2025 21:02:26 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 14 Oct 2025 21:02:26 +0200
branch
dav-2
changeset 887
26541c37b619
parent 886
da79af4baec8
child 889
42cdbf9bbd49

add TODOs for using modern ucx features

dav/sync.c file | annotate | diff | comparison | revisions
--- a/dav/sync.c	Tue Sep 09 20:56:47 2025 +0200
+++ b/dav/sync.c	Tue Oct 14 21:02:26 2025 +0200
@@ -203,17 +203,18 @@
 }
 
 
-
+// TODO: remove, ucx supports creating iterators for NULL maps
 static CxMapIterator mapIteratorValues(CxMap *map) {
     return cxMapIteratorValues(map ? map : cxEmptyMap);
 }
-
+// TODO: remove
 static CxIterator listIterator(CxList *list) {
     return cxListIterator(list ? list : cxEmptyList);
 }
 
 typedef void*(*clonefunc)(void *elm, void *userdata);
 
+// TODO: remove when ucx has a clone func
 static CxMap* mapClone(const CxAllocator *a, CxMap *map, clonefunc clone, void *userdata) {
     CxMap *newmap = cxHashMapCreate(
             a,

mercurial