From 27ef3152a05db9bd8378ee53a915ea7c9dc86828 Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 31 Dec 2024 13:39:52 +0100 Subject: [PATCH] chore: do not initialize zone pools in ZoneCreator --- src/Linker/ZoneCreation/ZoneCreator.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Linker/ZoneCreation/ZoneCreator.cpp b/src/Linker/ZoneCreation/ZoneCreator.cpp index fb17ba0d..52b973dc 100644 --- a/src/Linker/ZoneCreation/ZoneCreator.cpp +++ b/src/Linker/ZoneCreation/ZoneCreator.cpp @@ -14,14 +14,6 @@ namespace return std::make_unique(context.m_definition->m_name, 0, IGame::GetGameById(gameId)); } - void InitializeAssetPools(Zone& zone, const GameId gameId) - { - zone.m_pools = ZoneAssetPools::CreateForGame(gameId, &zone, zone.m_priority); - const auto assetTypeCount = zone.m_pools->GetAssetTypeCount(); - for (auto assetType = 0; assetType < assetTypeCount; assetType++) - zone.m_pools->InitPoolDynamic(assetType); - } - std::vector CreateGdtList(const ZoneCreationContext& context) { std::vector gdtList; @@ -62,7 +54,6 @@ namespace zone_creator std::unique_ptr CreateZoneForDefinition(GameId gameId, ZoneCreationContext& context) { auto zone = CreateZone(context, gameId); - InitializeAssetPools(*zone, gameId); IgnoreReferencesFromAssets(context); IgnoredAssetLookup ignoredAssetLookup(context.m_ignored_assets);