diff --git a/src/libs/glsl/glslmemorypool.cpp b/src/libs/glsl/glslmemorypool.cpp index e4909e408ff..24ce896e296 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 80e4e76f7bb..437786c225b 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