protobuf-c/protobuf-c.{c,h}: remove the unused protobuf_c_system_allocator

This commit is contained in:
Ilya Lipnitskiy 2013-11-27 15:53:15 -08:00
parent b1056e922a
commit b5b1d4e907
2 changed files with 0 additions and 20 deletions

View File

@ -155,20 +155,6 @@ ProtobufCAllocator protobuf_c_default_allocator =
NULL /* allocator_data */
};
/* Users should NOT modify this structure,
but it's difficult to prevent.
please modify protobuf_c_default_allocator instead. */
ProtobufCAllocator protobuf_c_system_allocator =
{
system_alloc,
system_free,
NULL, /* tmp_alloc */
8192, /* max_alloca */
NULL /* allocator_data */
};
/* === buffer-simple === */
void
protobuf_c_buffer_simple_append (ProtobufCBuffer *buffer,

View File

@ -164,12 +164,6 @@ struct _ProtobufCAllocator
*/
extern PROTOBUF_C_API ProtobufCAllocator protobuf_c_default_allocator; /* settable */
/* This is the system allocator, meaning it uses malloc() and free().
*
* NOTE: please do NOT modify this allocator.
*/
extern PROTOBUF_C_API ProtobufCAllocator protobuf_c_system_allocator; /* use malloc, free etc */
/* This is the function that our default allocators call when they
run out-of-memory. The default behavior of this function is to
terminate your program. */