From 493299435577765915cf58231017226ea532b2d7 Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 24 Dec 2019 11:40:00 +0100 Subject: [PATCH] ZoneLoading: Remove unused asset counting part --- src/ZoneLoading/Game/T6/ContentLoaderT6.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/ZoneLoading/Game/T6/ContentLoaderT6.cpp b/src/ZoneLoading/Game/T6/ContentLoaderT6.cpp index 01682bf1..6ecf0f73 100644 --- a/src/ZoneLoading/Game/T6/ContentLoaderT6.cpp +++ b/src/ZoneLoading/Game/T6/ContentLoaderT6.cpp @@ -178,22 +178,6 @@ void ContentLoaderT6::LoadXAssetArray(const bool atStreamStart, const size_t cou if(atStreamStart) m_stream->Load(varXAsset, count); - size_t assetCounts[ASSET_TYPE_COUNT]{0}; - - for(size_t index = 0; index < count; index++) - { - assert(varXAsset[index].type >= 0 && varXAsset[index].type < ASSET_TYPE_COUNT); - - if(varXAsset[index].type >= 0 && varXAsset[index].type < ASSET_TYPE_COUNT) - { - assetCounts[varXAsset[index].type]++; - } - } - - // Special case: CLIPMAP and CLIPMAP_PVS are the same struct and therefore share the same asset pool - assetCounts[ASSET_TYPE_CLIPMAP_PVS] += assetCounts[ASSET_TYPE_CLIPMAP]; - assetCounts[ASSET_TYPE_CLIPMAP] = 0; - for(asset_type_t assetType = 0; assetType < ASSET_TYPE_COUNT; assetType++) { m_zone->GetPools()->InitPoolDynamic(assetType);