From 889555ab1528d12167ee1f5a1c54943e82f6ee18 Mon Sep 17 00:00:00 2001 From: jani Date: Wed, 22 Oct 2003 08:28:57 +0000 Subject: [PATCH] remove deprecated and commented out pbuf_ref_chain() function --- src/core/pbuf.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index f08c4c4f..ad5bb6d0 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -887,27 +887,3 @@ pbuf_dechain(struct pbuf *p) LWIP_ASSERT("p->tot_len == p->len", p->tot_len == p->len); return (tail_gone > 0? NULL: q); } - -/* TODO: This function is unused in the lwIP stack and will be deprecated. This is due - * to the new way chains are built. */ -#if 0 -/** - * - * Increment the reference count of all pbufs in a chain. - * - * @param p first pbuf of chain - * - */ -void -pbuf_ref_chain(struct pbuf *p) -{ - SYS_ARCH_DECL_PROTECT(old_level); - SYS_ARCH_PROTECT(old_level); - - while (p != NULL) { - ++p->ref; - p = p->next; - } - SYS_ARCH_UNPROTECT(old_level); -} -#endif