diff options
author | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-02-05 16:37:54 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-02-09 11:20:37 +0000 |
commit | b1e36da1397e4684c243fce2e836dd56941f6595 (patch) | |
tree | f13b5cfdd0e283c5e69d0bf1dcd78c05159c935b /src/libs/glsl | |
parent | 9762afba607b545304f391263a393c3dcf9ec36d (diff) |
GLSL: Remove unused RecursiveMemoryPool
Change-Id: Id9a94e095d6f316a947750d77246393c02db63ad
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/libs/glsl')
-rw-r--r-- | src/libs/glsl/glslmemorypool.cpp | 15 | ||||
-rw-r--r-- | src/libs/glsl/glslmemorypool.h | 15 |
2 files changed, 0 insertions, 30 deletions
diff --git a/src/libs/glsl/glslmemorypool.cpp b/src/libs/glsl/glslmemorypool.cpp index e4909e408f..24ce896e29 100644 --- a/src/libs/glsl/glslmemorypool.cpp +++ b/src/libs/glsl/glslmemorypool.cpp @@ -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() { } diff --git a/src/libs/glsl/glslmemorypool.h b/src/libs/glsl/glslmemorypool.h index 80e4e76f7b..437786c225 100644 --- a/src/libs/glsl/glslmemorypool.h +++ b/src/libs/glsl/glslmemorypool.h @@ -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 |