diff options
author | tron <tron@openttd.org> | 2006-10-28 12:10:11 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-10-28 12:10:11 +0000 |
commit | bd562bc38bd4810b10e72945c8c9833a0eebdf2e (patch) | |
tree | 2101547f088255850a12d2d4ea4f4ffd6605f21b | |
parent | 24cc7d4656f45e1563063de761d4ba1b2ef0436c (diff) | |
download | openttd-bd562bc38bd4810b10e72945c8c9833a0eebdf2e.tar.xz |
(svn r6989) Remove the unused GetItemFromPool() function
-rw-r--r-- | pool.h | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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 { \ |