From 58ff93bc7c25d7d41dda28875f88652b260b9f13 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 10 Feb 2014 18:37:11 +0200 Subject: Get rid of calloc(). If there's malloc and memset, then there's no need for calloc, especially if we need to implement it ourselves. --- stm/malloc0.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'stm/malloc0.c') diff --git a/stm/malloc0.c b/stm/malloc0.c index 7e3f620db..eaa436f4f 100644 --- a/stm/malloc0.c +++ b/stm/malloc0.c @@ -29,14 +29,6 @@ void *realloc(void *ptr, size_t n) { #endif -void *calloc(size_t sz, size_t n) { - char *ptr = malloc(sz * n); - for (int i = 0; i < sz * n; i++) { - ptr[i] = 0; - } - return ptr; -} - void *malloc(size_t n) { return gc_alloc(n); } -- cgit v1.2.3