diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-06-11T13·58+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-06-12T15·49+0200 |
commit | 6ad0a2f749b4db6b24e8b86625883b0b43ad7ba1 (patch) | |
tree | 04c75b659349401964509eefd323d5967677fbe1 /src/libexpr/eval.cc | |
parent | 169e1478d88bd1af5109705553c7f6b756bb4ec4 (diff) |
Remove duplicate definition of allocBytes()
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 14 |
1 files changed, 0 insertions, 14 deletions
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<const Value *> & active, const Value & v) { checkInterrupt(); |