src/map.c

changeset 1429
6e0c3a8a914a
parent 1426
3a89b31f0724
--- a/src/map.c	Fri Oct 17 15:04:56 2025 +0200
+++ b/src/map.c	Fri Oct 17 16:53:24 2025 +0200
@@ -51,7 +51,7 @@
         cx_attr_unused enum cx_map_iterator_type type
 ) {
     CxMapIterator iter = {0};
-    iter.map.c = map;
+    iter.map = (CxMap*) map;
     iter.base.valid = cx_empty_map_iter_valid;
     return iter;
 }
@@ -107,27 +107,6 @@
     return map->cl->iterator(map, CX_MAP_ITERATOR_PAIRS);
 }
 
-CxMapIterator cxMapMutIteratorValues(CxMap *map) {
-    if (map == NULL) map = cxEmptyMap;
-    CxMapIterator it = map->cl->iterator(map, CX_MAP_ITERATOR_VALUES);
-    it.base.mutating = true;
-    return it;
-}
-
-CxMapIterator cxMapMutIteratorKeys(CxMap *map) {
-    if (map == NULL) map = cxEmptyMap;
-    CxMapIterator it = map->cl->iterator(map, CX_MAP_ITERATOR_KEYS);
-    it.base.mutating = true;
-    return it;
-}
-
-CxMapIterator cxMapMutIterator(CxMap *map) {
-    if (map == NULL) map = cxEmptyMap;
-    CxMapIterator it = map->cl->iterator(map, CX_MAP_ITERATOR_PAIRS);
-    it.base.mutating = true;
-    return it;
-}
-
 int cx_map_put(CxMap *map, CxHashKey key, void *value) {
     return map->cl->put(map, key, value) == NULL;
 }

mercurial