From b3d6eec4054fa94139ab8d4a919b28996ea6fb9c Mon Sep 17 00:00:00 2001 From: Erik Boasson Date: Mon, 10 Jun 2019 12:09:39 +0200 Subject: [PATCH] Remove prototypes for non-existent functions (#75) * dds_set_allocator * dds_set_aligned_allocator The intent behind them is good, but the approach too primitive ... there is far more work to be done for managing dynamic allocation in a meaningful way. Signed-off-by: Erik Boasson --- src/core/ddsc/include/dds/ddsc/dds_public_alloc.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/core/ddsc/include/dds/ddsc/dds_public_alloc.h b/src/core/ddsc/include/dds/ddsc/dds_public_alloc.h index 9e66a11..918a4bb 100644 --- a/src/core/ddsc/include/dds/ddsc/dds_public_alloc.h +++ b/src/core/ddsc/include/dds/ddsc/dds_public_alloc.h @@ -54,20 +54,6 @@ typedef struct dds_allocator } dds_allocator_t; -DDS_EXPORT void dds_set_allocator (const dds_allocator_t * __restrict n, dds_allocator_t * __restrict o); - -typedef struct dds_aligned_allocator -{ - /* size is a multiple of align, align is a power of 2 no less than - the machine's page size, returned pointer MUST be aligned to at - least align. */ - void * (*alloc) (size_t size, size_t align); - void (*free) (size_t size, void *ptr); -} -dds_aligned_allocator_t; - -DDS_EXPORT void dds_set_aligned_allocator (const dds_aligned_allocator_t * __restrict n, dds_aligned_allocator_t * __restrict o); - DDS_EXPORT void * dds_alloc (size_t size); DDS_EXPORT void * dds_realloc (void * ptr, size_t size); DDS_EXPORT void * dds_realloc_zero (void * ptr, size_t size);