(svn r6989) Remove the unused GetItemFromPool() function

This commit is contained in:
tron 2006-10-28 12:10:11 +00:00
parent 24cc7d4656
commit bd562bc38b
1 changed files with 0 additions and 6 deletions

6
pool.h
View File

@ -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 { \