From 6ad0a2f749b4db6b24e8b86625883b0b43ad7ba1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 11 Jun 2018 15:58:19 +0200 Subject: Remove duplicate definition of allocBytes() --- src/libexpr/eval.cc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/libexpr/eval.cc') diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 517952164a97..01658aa25f28 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -43,20 +43,6 @@ static char * dupString(const char * s) } -/* Note: Various places expect the allocated memory to be zeroed. */ -static void * allocBytes(size_t n) -{ - void * p; -#if HAVE_BOEHMGC - p = GC_malloc(n); -#else - p = calloc(n, 1); -#endif - if (!p) throw std::bad_alloc(); - return p; -} - - static void printValue(std::ostream & str, std::set & active, const Value & v) { checkInterrupt(); -- cgit 1.4.1