diff options
author | rubidium <rubidium@openttd.org> | 2007-08-03 20:18:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-03 20:18:38 +0000 |
commit | 2dd7a5d296988a6862281ffe7b0057e48105e6a9 (patch) | |
tree | c0df7dce8df2117cbd5b8833a3cc661a360dea88 /src/oldpool.h | |
parent | 974109446414b91dc80194e6228b27101e61a64f (diff) | |
download | openttd-2dd7a5d296988a6862281ffe7b0057e48105e6a9.tar.xz |
(svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*.
Diffstat (limited to 'src/oldpool.h')
-rw-r--r-- | src/oldpool.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/oldpool.h b/src/oldpool.h index eebd31ede..d1301bb2e 100644 --- a/src/oldpool.h +++ b/src/oldpool.h @@ -107,24 +107,6 @@ struct OldMemoryPool : public OldMemoryPoolBase { }; /** - * Those are the wrappers: - * CleanPool cleans the pool up, but you can use AddBlockToPool directly again - * (no need to call CreatePool!) - * AddBlockToPool adds 1 more block to the pool. Returns false if there is no - * more room - */ -static inline void CleanPool(OldMemoryPoolBase *array) { array->CleanPool(); } -static inline bool AddBlockToPool(OldMemoryPoolBase *array) { return array->AddBlockToPool(); } - -/** - * Adds blocks to the pool if needed (and possible) till index fits inside the pool - * - * @return Returns false if adding failed - */ -static inline bool AddBlockIfNeeded(OldMemoryPoolBase *array, uint index) { return array->AddBlockIfNeeded(index); } - - -/** * Generic function to initialize a new block in a pool. * @param start_item the first item that needs to be initialized */ |