From 9e3ad3de838defd501e55515a3a70b94ca92df6d Mon Sep 17 00:00:00 2001 From: SaiSurya Ch Date: Fri, 9 Aug 2024 11:57:02 +0530 Subject: [PATCH] src: alloc: Remove unused functions src: alloc: Remove unused get memory size functions. Signed-off-by: SaiSurya Ch --- src/lib/alloc.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/lib/alloc.c b/src/lib/alloc.c index bbd335d872e5..c2db42a3173c 100644 --- a/src/lib/alloc.c +++ b/src/lib/alloc.c @@ -72,27 +72,6 @@ static void validate_memory(void *ptr, size_t size) } #endif -/* total size of block */ -static inline uint32_t block_get_size(struct block_map *map) -{ - uint32_t size = sizeof(*map) + map->count * - (map->block_size + sizeof(struct block_hdr)); - - return size; -} - -/* total size of heap */ -static inline uint32_t heap_get_size(struct mm_heap *heap) -{ - uint32_t size = sizeof(struct mm_heap); - int i; - - for (i = 0; i < heap->blocks; i++) - size += block_get_size(&heap->map[i]); - - return size; -} - #if CONFIG_DEBUG_BLOCK_FREE static void write_pattern(struct mm_heap *heap_map, int heap_depth, uint8_t pattern)