Mercurial > hg > openttd
changeset 4986:7ed4455fcba7 draft
(svn r6989) Remove the unused GetItemFromPool() function
author | tron <tron@openttd.org> |
---|---|
date | Sat, 28 Oct 2006 12:10:11 +0000 |
parents | 556debce632a |
children | 2a56e03c05ce |
files | pool.h |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/pool.h +++ b/pool.h @@ -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 { \