Red code legacy MemoryManager, StreamEngine, ResourceManager, ImageHandler, AsyncPakManager, and more (#758)

Remove from CryCommon and CrySystem:
- MemoryManager and all related classes/files
- StreamEngine, ResourceManager, ImageHandler, and AsyncPakManager
- Various other related interfaces/files/classes etc. that are all now unused
This commit is contained in:
bosnichd
2021-05-14 08:53:56 -06:00
committed by GitHub
parent d0daab4fe0
commit a9d986c10f
116 changed files with 37 additions and 19717 deletions
@@ -105,34 +105,11 @@ namespace Maestro
MaestroAllocatorScope::DeactivateAllocators();
}
//////////////////////////////////////////////////////////////////////////
void CSystemEventListener_Movie::OnSystemEvent(ESystemEvent event, [[maybe_unused]] UINT_PTR wparam, [[maybe_unused]] UINT_PTR lparam)
{
switch (event)
{
case ESYSTEM_EVENT_LEVEL_POST_UNLOAD:
{
STLALLOCATOR_CLEANUP;
CLightAnimWrapper::ReconstructCache();
break;
}
}
}
///////////////////////////////////////////////////////////////////////////////////////////////
void MaestroSystemComponent::OnCrySystemInitialized(ISystem& system, const SSystemInitParams& startupParams)
{
if (!startupParams.bSkipMovie)
{
// OnCrySystemInitialized should only ever be called once, and we should be the only one initializing gEnv->pMovieSystem
AZ_Assert(!m_movieSystemEventListener && gEnv && !gEnv->pMovieSystem, "MaestroSystemComponent::OnCrySystemInitialized - movie system was alread initialized.");
if (!m_movieSystemEventListener)
{
m_movieSystemEventListener.reset(new CSystemEventListener_Movie);
}
system.GetISystemEventDispatcher()->RegisterListener(m_movieSystemEventListener.get());
// Create the movie System
m_movieSystem.reset(new CMovieSystem(&system));
gEnv->pMovieSystem = m_movieSystem.get();
@@ -142,17 +119,6 @@ namespace Maestro
///////////////////////////////////////////////////////////////////////////////////////////////
void MaestroSystemComponent::OnCrySystemShutdown([[maybe_unused]] ISystem& system)
{
// Remove the system movie listener and clean up allocations
if (m_movieSystemEventListener)
{
if (gEnv && gEnv->pSystem && gEnv->pSystem->GetISystemEventDispatcher())
{
gEnv->pSystem->GetISystemEventDispatcher()->RemoveListener(m_movieSystemEventListener.get());
}
// delete m_movieSystemEventListener
m_movieSystemEventListener.reset();
}
if (gEnv && gEnv->pMovieSystem)
{
gEnv->pMovieSystem = nullptr;