From cc906f9ec347847e1f004d680864d7228df95306 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Wed, 19 Feb 2025 10:15:59 -0500 Subject: [PATCH] remove md_malloc, md_free They were from a copy/paste of zpl's allocator impl and are not used. --- source/base/memory_substrate.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/source/base/memory_substrate.h b/source/base/memory_substrate.h index e614267..fca4780 100644 --- a/source/base/memory_substrate.h +++ b/source/base/memory_substrate.h @@ -135,16 +135,6 @@ MD_API void* md_heap_allocator_proc( void* allocator_data, MD_AllocatorMode mode #define md_heap() (MD_AllocatorInfo){ md_heap_allocator_proc, md_nullptr } #endif -#ifndef md_malloc -// Helper to allocate memory using md_heap allocator. -#define md_malloc( sz ) md_alloc( md_heap(), sz ) -#endif - -#ifndef md_free -// Helper to free memory allocated by md_heap allocator. -#define md_free( ptr ) md_alloc_free( md_heap(), ptr ) -#endif - /* Virtual Memory MD_Arena This is separate from the composite arena used by HMH/Casey Muratori/RJF This arena stricly manages one reservation of the process's virtual address space.