]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - list.h
list.h: Remove unused list_for_each_entry_safe_reverse.
[paraslash.git] / list.h
diff --git a/list.h b/list.h
index 66c6d91525031261ff94cd3028e672cb340c06cd..fec9249d6c5089d08f3c7673eec730585ffd56b4 100644 (file)
--- a/list.h
+++ b/list.h
@@ -181,18 +181,6 @@ static inline int list_empty(const struct list_head *head)
                n = list_entry(pos->member.next, typeof(*pos), member); \
             &pos->member != (head);                                    \
             pos = n, n = list_entry(n->member.next, typeof(*n), member))
-/**
- * iterate backwards over list of given type safe against removal of list entry
- * \param pos the type * to use as a loop counter.
- * \param n another type * to use as temporary storage
- * \param head the head for your list.
- * \param member the name of the list_struct within the struct.
- */
-#define list_for_each_entry_safe_reverse(pos, n, head, member)         \
-       for (pos = list_entry((head)->prev, typeof(*pos), member),      \
-               n = list_entry(pos->member.prev, typeof(*pos), member); \
-            &pos->member != (head);                                    \
-            pos = n, n = list_entry(n->member.prev, typeof(*n), member))
 
 /**
  * Get the first element from a list