Legacy cleanup, part 2 (#3659)
* Legacy cleanup, part 2 There are still things that can be removed, those will be likely done in part three: `The Return of the Cleanup` :) Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com> * Fix windows build Somehow there were some unfixed errors from enabled warnings? I'm unsure if I've pulled repo in unstable state, or those were somehow missed. Signed-off-by: nemerle <96597+nemerle@users.noreply.github.com>
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "ISystem.h"
|
||||
|
||||
#include <CryCommon/CryLegacyAllocator.h>
|
||||
#include <StlUtils.h>
|
||||
|
||||
//TODO: Pull most of this into a cpp file!
|
||||
@@ -265,23 +265,6 @@ public:
|
||||
return ret;
|
||||
}
|
||||
|
||||
void GetMemoryUsage(ICrySizer* pSizer) const
|
||||
{
|
||||
BLOCK* pBlock = m_blocks;
|
||||
while (pBlock)
|
||||
{
|
||||
pSizer->AddObject(pBlock, offsetof(BLOCK, s) + pBlock->size * sizeof(char));
|
||||
pBlock = pBlock->next;
|
||||
}
|
||||
|
||||
pBlock = m_free_blocks;
|
||||
while (pBlock)
|
||||
{
|
||||
pSizer->AddObject(pBlock, offsetof(BLOCK, s) + pBlock->size * sizeof(char));
|
||||
pBlock = pBlock->next;
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
CSimpleStringPool(const CSimpleStringPool&);
|
||||
CSimpleStringPool& operator = (const CSimpleStringPool&);
|
||||
|
||||
Reference in New Issue
Block a user