for_each_*_object: take flag arguments as enum
[gitweb.git] / commit-slab-impl.h
index 87a9cadfcca3f58045e2d7b2c3a143c8c4501f8d..ac1e6d409ad6cf1109f1e439944bd2fb1ab9e58e 100644 (file)
@@ -11,8 +11,6 @@
 
 #define implement_commit_slab(slabname, elemtype, scope)               \
                                                                        \
-static int stat_ ##slabname## realloc;                                 \
-                                                                       \
 scope void init_ ##slabname## _with_stride(struct slabname *s,         \
                                                   unsigned stride)     \
 {                                                                      \
@@ -54,7 +52,6 @@ scope elemtype *slabname## _at_peek(struct slabname *s,                       \
                if (!add_if_missing)                                    \
                        return NULL;                                    \
                REALLOC_ARRAY(s->slab, nth_slab + 1);                   \
-               stat_ ##slabname## realloc++;                           \
                for (i = s->slab_count; i <= nth_slab; i++)             \
                        s->slab[i] = NULL;                              \
                s->slab_count = nth_slab + 1;                           \