Commit decb291553d8a81f065d3ff24016464aab7135ad

Ran Benita 2014-04-22T12:29:22

darray: remove unused darray_foreach_reverse() Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/darray.h b/src/darray.h
index d3fe37b..0e4f5f2 100644
--- a/src/darray.h
+++ b/src/darray.h
@@ -190,7 +190,4 @@ darray_next_alloc(unsigned alloc, unsigned need, unsigned itemSize)
          (idx) < (arr).size; \
          (idx)++, (val)++)
 
-#define darray_foreach_reverse(i, arr) \
-    for ((i) = &(arr).item[(arr).size]; (i)-- > &(arr).item[0]; )
-
 #endif /* CCAN_DARRAY_H */