From a8a69ec1e25b0499686b465342b6ca90861cba93 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 18 Sep 2024 01:09:59 -0400 Subject: Remove dead code --- stdlib/util.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'stdlib/util.h') diff --git a/stdlib/util.h b/stdlib/util.h index 82f83ab1..a1db74cd 100644 --- a/stdlib/util.h +++ b/stdlib/util.h @@ -47,17 +47,6 @@ list = _prev; \ } while(0) -#define LIST_MAP(src, var, ...) ({\ - __typeof(src) mapped = NULL; \ - __typeof(src) *next = &mapped; \ - for (__typeof(src) var = src; var; var = var->next) { \ - *next = GC_MALLOC(sizeof(__typeof(*(src)))); \ - **next = *var; \ - **next = (__typeof(*(src))){__VA_ARGS__}; \ - next = &((*next)->next); \ - } \ - mapped; }) - __attribute__((format(printf, 1, 2))) char *heap_strf(const char *fmt, ...); -- cgit v1.2.3