From 701a55cdd57501ea3309028b80916cb6dcc41d0f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 6 Mar 2022 11:27:09 -0500 Subject: Revert "darray: New DARRAY_POP() macro" This reverts commit 6ac4deb451ccd4ed11fb0d022b83710b5b0522fe. --- darray.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'darray.c') diff --git a/darray.c b/darray.c index 8f796d6..6585d30 100644 --- a/darray.c +++ b/darray.c @@ -15,7 +15,6 @@ ****************************************************************************/ #include "darray.h" -#include #include #include @@ -97,14 +96,6 @@ int darray_check(void *da) { } } -size_t darray_pop(void *da) { - assert(da); - - struct darray *header = darray_header(da); - assert(header->length > 0); - return --header->length; -} - void darray_free(void *da) { if (da) { free(darray_header(da)); -- cgit v1.2.3