summaryrefslogtreecommitdiff
path: root/data_structures.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-02-01 21:29:05 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-02-01 21:29:05 -0500
commitae47cf5b2c8991e21f0445a34f6960afa3f25e4e (patch)
tree0d3fa64cc0f52d69905dc655ffc0c8f48903b823 /data_structures.c
parent6ecf77104d061b2035d490c23e45cc5b1a1a0235 (diff)
more namespaces
Diffstat (limited to 'data_structures.c')
-rw-r--r--data_structures.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/data_structures.c b/data_structures.c
index 524f916..7580a92 100644
--- a/data_structures.c
+++ b/data_structures.c
@@ -96,10 +96,6 @@ static void arr_set_len_(void **arr, size_t n, size_t item_sz) {
arr_hdr(*arr)->len = n;
}
static void arr_set_lena_(void **arr, size_t n, size_t item_sz, Allocator *a) {
- if (n == 0) {
- arr_cleara_(arr, item_sz, a);
- return;
- }
arr_resva_(arr, n, item_sz, a);
arr_hdr(*arr)->len = n;
}