author | tron |
Sat, 28 Oct 2006 12:10:11 +0000 | |
changeset 4986 | 76eebd65bc6a |
parent 4985 | 045fa9806635 |
child 4987 | 09955f8b87c4 |
--- a/pool.h Sat Oct 28 12:07:32 2006 +0000 +++ b/pool.h Sat Oct 28 12:10:11 2006 +0000 @@ -50,12 +50,6 @@ */ 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 { \