summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-10-28 12:10:11 +0000
committertron <tron@openttd.org>2006-10-28 12:10:11 +0000
commit45bef5f7426dc873acec15c9d13f0d413a613ae4 (patch)
tree2101547f088255850a12d2d4ea4f4ffd6605f21b
parent59c709a686460a0e9b2321091aa10d29031ba9ea (diff)
downloadopenttd-45bef5f7426dc873acec15c9d13f0d413a613ae4.tar.xz
(svn r6989) Remove the unused GetItemFromPool() function
-rw-r--r--pool.h6
1 files changed, 0 insertions, 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 { \