src/hash_map.c

changeset 829
7d4e31d295af
parent 709
1e8ba59e7911
child 850
b2bc48c2b251
--- a/src/hash_map.c	Sat Feb 17 20:22:13 2024 +0100
+++ b/src/hash_map.c	Sat Feb 17 20:51:27 2024 +0100
@@ -326,16 +326,6 @@
     }
 }
 
-static bool cx_hash_map_iter_flag_rm(void *it) {
-    struct cx_iterator_base_s *iter = it;
-    if (iter->mutating) {
-        iter->remove = true;
-        return true;
-    } else {
-        return false;
-    }
-}
-
 static CxIterator cx_hash_map_iterator(
         CxMap const *map,
         enum cx_map_iterator_type type
@@ -360,7 +350,6 @@
             assert(false);
     }
 
-    iter.base.flag_removal = cx_hash_map_iter_flag_rm;
     iter.base.remove = false;
     iter.base.mutating = false;
 

mercurial