C++: Remove unused RecursiveMemoryPool

Change-Id: I7009df49f79d8f895c5344f7be3558f7f3d35143
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Nikolai Kosjar
2015-02-05 16:36:49 +01:00
parent d8d03ad607
commit 9762afba60
2 changed files with 0 additions and 31 deletions

View File

@@ -81,21 +81,6 @@ void *MemoryPool::allocate_helper(size_t size)
return addr;
}
RecursiveMemoryPool::RecursiveMemoryPool(MemoryPool *pool)
: _pool(pool),
_blockCount(pool->_blockCount),
_ptr(pool->_ptr),
_end(pool->_end)
{
}
RecursiveMemoryPool::~RecursiveMemoryPool()
{
_pool->_blockCount = _blockCount;
_pool->_ptr = _ptr;
_pool->_end = _end;
}
Managed::Managed()
{ }

View File

@@ -27,7 +27,6 @@
namespace CPlusPlus {
class MemoryPool;
class RecursiveMemoryPool;
class CPLUSPLUS_EXPORT MemoryPool
{
@@ -66,20 +65,6 @@ private:
BLOCK_SIZE = 8 * 1024,
DEFAULT_BLOCK_COUNT = 8
};
friend class RecursiveMemoryPool;
};
class CPLUSPLUS_EXPORT RecursiveMemoryPool
{
MemoryPool *_pool;
int _blockCount;
char *_ptr;
char *_end;
public:
RecursiveMemoryPool(MemoryPool *pool);
~RecursiveMemoryPool();
};
class CPLUSPLUS_EXPORT Managed
@@ -98,5 +83,4 @@ public:
} // namespace CPlusPlus
#endif // CPLUSPLUS_MEMORYPOOL_H