mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r6989) Remove the unused GetItemFromPool() function
This commit is contained in:
parent
24cc7d4656
commit
bd562bc38b
6
pool.h
6
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 { \
|
||||
|
Loading…
Reference in New Issue
Block a user