From 9f13315d1c03223f12655839afca3bd44c86245a Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 24 Aug 2014 19:53:52 +0200 Subject: [PATCH] Remove unused numUnload --- apps/openmw/mwworld/scene.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/apps/openmw/mwworld/scene.cpp b/apps/openmw/mwworld/scene.cpp index ee5f97d72..80ad66743 100644 --- a/apps/openmw/mwworld/scene.cpp +++ b/apps/openmw/mwworld/scene.cpp @@ -269,24 +269,6 @@ namespace MWWorld CellStoreCollection::iterator active = mActiveCells.begin(); - // get the number of cells to unload - int numUnload = 0; - while (active!=mActiveCells.end()) - { - if ((*active)->getCell()->isExterior()) - { - if (std::abs (X-(*active)->getCell()->getGridX())<=1 && - std::abs (Y-(*active)->getCell()->getGridY())<=1) - { - // keep cells within the new 3x3 grid - ++active; - continue; - } - } - ++active; - ++numUnload; - } - active = mActiveCells.begin(); while (active!=mActiveCells.end()) { @@ -435,14 +417,6 @@ namespace MWWorld // remove active CellStoreCollection::iterator active = mActiveCells.begin(); - // count number of cells to unload - int numUnload = 0; - while (active!=mActiveCells.end()) - { - ++active; - ++numUnload; - } - // unload int current = 0; active = mActiveCells.begin();