[list] Remove useless DO_SLIST_UNREF

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-03 11:53:59 +02:00
parent 59aa2b2da7
commit 1dbea735b3
3 changed files with 0 additions and 18 deletions

View File

@ -179,21 +179,5 @@
return item2; \
}
#define DO_SLIST_UNREF(type, prefix, dtor) \
static inline void prefix##_list_unref(type **list) \
{ \
type *next, *item = *list; \
while(item) \
{ \
next = item->next; \
if(--(item->refcount) <= 0) \
{ \
prefix##_list_detach(list, item); \
dtor(&item); \
} \
item = next; \
} \
}
#endif
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80

View File

@ -39,7 +39,6 @@ void statusbar_refresh(void);
DO_RCNT(statusbar_t, statusbar, statusbar_delete)
DO_SLIST(statusbar_t, statusbar, statusbar_delete)
DO_SLIST_UNREF(statusbar_t, statusbar, statusbar_delete)
#endif
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80

1
tag.h
View File

@ -49,7 +49,6 @@ int luaA_tag_userdata_new(tag_t *);
DO_RCNT(tag_t, tag, tag_delete)
DO_SLIST(tag_t, tag, tag_delete)
DO_SLIST_UNREF(tag_t, tag, tag_delete)
DO_SLIST(tag_client_node_t, tag_client_node, p_delete)