summaryrefslogtreecommitdiff
path: root/allocator.c
diff options
context:
space:
mode:
Diffstat (limited to 'allocator.c')
-rw-r--r--allocator.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/allocator.c b/allocator.c
index f3fbff6..98005ef 100644
--- a/allocator.c
+++ b/allocator.c
@@ -114,10 +114,3 @@ static void allocr_free_all(Allocator *a) {
page = next;
}
}
-
-static char *allocr_str_to_cstr(Allocator *a, String s) {
- char *ret = allocr_malloc(a, s.len + 1);
- memcpy(ret, s.str, s.len);
- ret[s.len] = 0;
- return ret;
-}