summaryrefslogtreecommitdiffstats
path: root/darray.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-03-06 11:27:09 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-03-09 08:57:56 -0500
commit701a55cdd57501ea3309028b80916cb6dcc41d0f (patch)
tree52186d556e30f26aa3b4fd0fddcb3bc096daf2a0 /darray.c
parentbc9e94b898fb680b5391434f75b0434156cef638 (diff)
downloadbfs-701a55cdd57501ea3309028b80916cb6dcc41d0f.tar.xz
Revert "darray: New DARRAY_POP() macro"
This reverts commit 6ac4deb451ccd4ed11fb0d022b83710b5b0522fe.
Diffstat (limited to 'darray.c')
-rw-r--r--darray.c9
1 files changed, 0 insertions, 9 deletions
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 <assert.h>
#include <stdlib.h>
#include <string.h>
@@ -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));