forked from qt-creator/qt-creator
GLSL: Remove unused RecursiveMemoryPool
Change-Id: Id9a94e095d6f316a947750d77246393c02db63ad Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -89,21 +89,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()
|
||||
{ }
|
||||
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
namespace GLSL {
|
||||
|
||||
class MemoryPool;
|
||||
class RecursiveMemoryPool;
|
||||
|
||||
class GLSL_EXPORT MemoryPool
|
||||
{
|
||||
@@ -76,20 +75,6 @@ private:
|
||||
BLOCK_SIZE = 8 * 1024,
|
||||
DEFAULT_BLOCK_COUNT = 8
|
||||
};
|
||||
|
||||
friend class RecursiveMemoryPool;
|
||||
};
|
||||
|
||||
class GLSL_EXPORT RecursiveMemoryPool
|
||||
{
|
||||
MemoryPool *_pool;
|
||||
int _blockCount;
|
||||
char *_ptr;
|
||||
char *_end;
|
||||
|
||||
public:
|
||||
RecursiveMemoryPool(MemoryPool *pool);
|
||||
~RecursiveMemoryPool();
|
||||
};
|
||||
|
||||
class GLSL_EXPORT Managed
|
||||
|
||||
Reference in New Issue
Block a user