From 79f2767e1c4819f9bc0f4a788fbdcf933a8693e3 Mon Sep 17 00:00:00 2001 From: Robert Edmonds Date: Wed, 20 Nov 2013 14:20:49 -0500 Subject: [PATCH] remove alloca() remnants --- protobuf-c/protobuf-c.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/protobuf-c/protobuf-c.c b/protobuf-c/protobuf-c.c index aedd982..a60cad9 100644 --- a/protobuf-c/protobuf-c.c +++ b/protobuf-c/protobuf-c.c @@ -51,14 +51,6 @@ #include /* for occasional printf()s */ #include /* for abort(), malloc() etc */ #include /* for strlen(), memcpy(), memmove() */ -#if 0 /* we no longer use alloca. */ -#if HAVE_ALLOCA_H -#include -#elif HAVE_MALLOC_H -#include -#endif -#endif - #ifndef PRINT_UNPACK_ERRORS #define PRINT_UNPACK_ERRORS 1 @@ -2288,7 +2280,6 @@ protobuf_c_message_unpack (const ProtobufCMessageDescriptor *desc, } which_slab++; size = sizeof(ScannedMember) << (which_slab+FIRST_SCANNED_MEMBER_SLAB_SIZE_LOG2); - /* TODO: consider using alloca() ! */ if (allocator->tmp_alloc != NULL) scanned_member_slabs[which_slab] = TMPALLOC(allocator, size); else