From 45bef5f7426dc873acec15c9d13f0d413a613ae4 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 28 Oct 2006 12:10:11 +0000 Subject: (svn r6989) Remove the unused GetItemFromPool() function --- pool.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pool.h b/pool.h index 365d7fb47..8ee7bd2df 100644 --- a/pool.h +++ b/pool.h @@ -50,12 +50,6 @@ bool AddBlockToPool(MemoryPool *array); */ bool AddBlockIfNeeded(MemoryPool *array, uint index); -static inline byte *GetItemFromPool(const MemoryPool *pool, uint index) -{ - assert(index < pool->total_items); - return (pool->blocks[index >> pool->block_size_bits] + (index & ((1 << pool->block_size_bits) - 1)) * pool->item_size); -} - #define POOL_ENUM(name, type, block_size_bits, max_blocks) \ enum { \ -- cgit v1.2.3-70-g09d2