aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-18 01:09:59 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-18 01:09:59 -0400
commita8a69ec1e25b0499686b465342b6ca90861cba93 (patch)
treef4bdd0153f51b02beccbb9f796518c6f4aae0c0a
parentc9ff2b0a8aebdc2a46490717ef27e288bd822499 (diff)
Remove dead code
-rw-r--r--stdlib/util.h11
1 files changed, 0 insertions, 11 deletions
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, ...);