summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-17 20:38:22 +0000
committerrubidium <rubidium@openttd.org>2009-05-17 20:38:22 +0000
commitb385cf31cbfe405cb29090e3ea31aa8115ff50b9 (patch)
treefc7292ba462b728dc16b749b032f1d1f9e649a35 /src
parent10406e8ad668e230eaeac4a969dca367da1d9bd8 (diff)
downloadopenttd-b385cf31cbfe405cb29090e3ea31aa8115ff50b9.tar.xz
(svn r16347) -Cleanup: remove some unused defines from oldpool.h.
Diffstat (limited to 'src')
-rw-r--r--src/oldpool.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/oldpool.h b/src/oldpool.h
index 66ae81752..a21d5fb0a 100644
--- a/src/oldpool.h
+++ b/src/oldpool.h
@@ -357,11 +357,6 @@ public:
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 @@ public:
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 */