forked from qt-creator/qt-creator
C++: Remove unused RecursiveMemoryPool
Change-Id: I7009df49f79d8f895c5344f7be3558f7f3d35143 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
15
src/libs/3rdparty/cplusplus/MemoryPool.cpp
vendored
15
src/libs/3rdparty/cplusplus/MemoryPool.cpp
vendored
@@ -81,21 +81,6 @@ void *MemoryPool::allocate_helper(size_t size)
|
|||||||
return addr;
|
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()
|
Managed::Managed()
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
|||||||
16
src/libs/3rdparty/cplusplus/MemoryPool.h
vendored
16
src/libs/3rdparty/cplusplus/MemoryPool.h
vendored
@@ -27,7 +27,6 @@
|
|||||||
namespace CPlusPlus {
|
namespace CPlusPlus {
|
||||||
|
|
||||||
class MemoryPool;
|
class MemoryPool;
|
||||||
class RecursiveMemoryPool;
|
|
||||||
|
|
||||||
class CPLUSPLUS_EXPORT MemoryPool
|
class CPLUSPLUS_EXPORT MemoryPool
|
||||||
{
|
{
|
||||||
@@ -66,20 +65,6 @@ private:
|
|||||||
BLOCK_SIZE = 8 * 1024,
|
BLOCK_SIZE = 8 * 1024,
|
||||||
DEFAULT_BLOCK_COUNT = 8
|
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
|
class CPLUSPLUS_EXPORT Managed
|
||||||
@@ -98,5 +83,4 @@ public:
|
|||||||
|
|
||||||
} // namespace CPlusPlus
|
} // namespace CPlusPlus
|
||||||
|
|
||||||
|
|
||||||
#endif // CPLUSPLUS_MEMORYPOOL_H
|
#endif // CPLUSPLUS_MEMORYPOOL_H
|
||||||
|
|||||||
Reference in New Issue
Block a user