1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-17 20:58:07 +02:00

Remove unused code

This commit is contained in:
Ivan Savenko 2024-12-28 20:37:52 +00:00
parent ea368c5176
commit 78fc6d0e41

View File

@ -857,15 +857,6 @@ BattleScore BattleExchangeEvaluator::calculateExchange(
exchangeBattle->nextRound();
}
// avoid blocking path for stronger stack by weaker stack
// the method checks if all stacks can be placed around enemy
std::map<BattleHex, battle::Units> reachabilityMap;
auto hexes = ap.attack.defender->getSurroundingHexes();
for(auto hex : hexes)
reachabilityMap[hex] = getOneTurnReachableUnits(turn, hex);
auto score = v.getScore();
if(simulationTurnsCount < totalTurnsCount)