From 2dd7a5d296988a6862281ffe7b0057e48105e6a9 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 3 Aug 2007 20:18:38 +0000 Subject: (svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*. --- src/oldpool.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/oldpool.h') diff --git a/src/oldpool.h b/src/oldpool.h index eebd31ede..d1301bb2e 100644 --- a/src/oldpool.h +++ b/src/oldpool.h @@ -106,24 +106,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 -- cgit v1.2.3-54-g00ecf