summaryrefslogtreecommitdiffstats
path: root/common/dummy_malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/dummy_malloc.c')
-rw-r--r--common/dummy_malloc.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/common/dummy_malloc.c b/common/dummy_malloc.c
index 641baa1..fa4f5d1 100644
--- a/common/dummy_malloc.c
+++ b/common/dummy_malloc.c
@@ -50,16 +50,3 @@ void *realloc(void *ptr, size_t size)
{
BUG();
}
-
-void *calloc(size_t n, size_t elem_size)
-{
- size_t size = elem_size * n;
- void *r = malloc(size);
-
- if (!r)
- return r;
-
- memset(r, 0x0, size);
-
- return r;
-}