Mercurial > hg > openttd
changeset 11944:0eb2a7a73a5f draft
(svn r16347) -Cleanup: remove some unused defines from oldpool.h.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 17 May 2009 20:38:22 +0000 |
parents | 3f265ea6e0ad |
children | 2064815ee61e |
files | src/oldpool.h |
diffstat | 1 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/oldpool.h +++ b/src/oldpool.h @@ -357,11 +357,6 @@ extern OldMemoryPool<type> _##name##_pool; -#define DEFINE_OLD_POOL(name, type, new_block_proc, clean_block_proc) \ - OldMemoryPool<type> _##name##_pool( \ - #name, name##_POOL_MAX_BLOCKS, name##_POOL_BLOCK_SIZE_BITS, sizeof(type), \ - new_block_proc, clean_block_proc); - #define DEFINE_OLD_POOL_GENERIC(name, type) \ OldMemoryPool<type> _##name##_pool( \ #name, name##_POOL_MAX_BLOCKS, name##_POOL_BLOCK_SIZE_BITS, sizeof(type), \ @@ -369,11 +364,4 @@ template type *PoolItem<type, type##ID, &_##name##_pool>::AllocateSafeRaw(uint &first); \ template bool PoolItem<type, type##ID, &_##name##_pool>::CanAllocateItem(uint count); - -#define STATIC_OLD_POOL(name, type, block_size_bits, max_blocks, new_block_proc, clean_block_proc) \ - OLD_POOL_ENUM(name, type, block_size_bits, max_blocks) \ - static DEFINE_OLD_POOL(name, type, new_block_proc, clean_block_proc) \ - static inline type *Get##name(uint index) { return _##name##_pool.Get(index); } \ - static inline uint Get##name##PoolSize() { return _##name##_pool.GetSize(); } - #endif /* OLDPOOL_H */