From 337762aba778a059962d1426577c8a5269b51a57 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Fri, 20 Jul 2012 09:43:48 +0200 Subject: [PATCH] Remove __list_for_each(). It is identical to list_for_each(), though its comment claimed otherwise. --- include/libfirm/adt/list.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/include/libfirm/adt/list.h b/include/libfirm/adt/list.h index 2ebc4ea7a..9d6ec715c 100644 --- a/include/libfirm/adt/list.h +++ b/include/libfirm/adt/list.h @@ -228,19 +228,6 @@ static inline void list_splice_init(struct list_head *list, #define list_for_each(pos, head) \ for (pos = (head)->next; pos != (head); pos = pos->next) -/** - * __list_for_each - iterate over a list - * @param pos the &struct list_head to use as a loop counter. - * @param head the head for your list. - * - * This variant differs from list_for_each() in that it's the - * simplest possible list iteration code, no ing is done. - * Use this for code that knows the list to be very short (empty - * or 1 entry) most of the time. - */ -#define __list_for_each(pos, head) \ - for (pos = (head)->next; pos != (head); pos = pos->next) - /** * list_for_each_prev - iterate over a list backwards * @param pos the &struct list_head to use as a loop counter. -- 2.20.1