From 955ceeb74e64670a451f86fa04cb6bd9e563b427 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 13 Nov 2011 18:38:14 -0500 Subject: Get rid of DMNSN_ARRAY_FOREACH_REVERSE. --- libdimension/dimension/array.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'libdimension') diff --git a/libdimension/dimension/array.h b/libdimension/dimension/array.h index dab4d74..e0a0f08 100644 --- a/libdimension/dimension/array.h +++ b/libdimension/dimension/array.h @@ -308,14 +308,3 @@ dmnsn_array_sort(dmnsn_array *array, dmnsn_array_comparator_fn *comparator) for (type i = dmnsn_array_first(array); \ (size_t)(i - (type)dmnsn_array_first(array)) < dmnsn_array_size(array); \ ++i) - -/** - * Iterate over an array, in reverse order. - * @param type The (pointer) type to use as an iterator. - * @param i The name of the iterator within the loop body. - * @param[in] array The array to loop over. - */ -#define DMNSN_ARRAY_FOREACH_REVERSE(type, i, array) \ - for (type i = dmnsn_array_last(array); \ - i - (type)dmnsn_array_first(array) >= 0; \ - --i) -- cgit v1.2.3