From: Orestis Floros Date: Fri, 20 Apr 2018 03:13:40 +0000 (+0300) Subject: Remove obsolete macro FOR_TABLE X-Git-Tag: 4.16~94^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F3255%2Fhead;p=i3%2Fi3 Remove obsolete macro FOR_TABLE Was added in 38c8541807d50e18bf5ea61995ec6b3ab3e8a068, should have been removed in c145f7e5297ef06aaf84689762a736d5bc8cbb83. --- diff --git a/include/util.h b/include/util.h index 3547d8d7..d58e21b7 100644 --- a/include/util.h +++ b/include/util.h @@ -25,9 +25,6 @@ #define STARTS_WITH(string, needle) (strncasecmp((string), (needle), strlen((needle))) == 0) #define CIRCLEQ_NEXT_OR_NULL(head, elm, field) (CIRCLEQ_NEXT(elm, field) != CIRCLEQ_END(head) ? CIRCLEQ_NEXT(elm, field) : NULL) #define CIRCLEQ_PREV_OR_NULL(head, elm, field) (CIRCLEQ_PREV(elm, field) != CIRCLEQ_END(head) ? CIRCLEQ_PREV(elm, field) : NULL) -#define FOR_TABLE(workspace) \ - for (int cols = 0; cols < (workspace)->cols; cols++) \ - for (int rows = 0; rows < (workspace)->rows; rows++) #define NODES_FOREACH(head) \ for (Con *child = (Con *)-1; (child == (Con *)-1) && ((child = 0), true);) \