1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix unused function warning in release mode

This commit is contained in:
Vadim Markovtsev 2016-02-02 11:12:28 +03:00
parent 35c243c30a
commit 8d7629bdab

View File

@ -140,10 +140,12 @@ static bool ruleIsSomething(const std::string & rule)
return rule == "+";
}
#ifndef NDEBUG
static bool ruleIsAny(const std::string & rule)
{
return rule == "?";
}
#endif
///CDrawRoadsOperation
CDrawRoadsOperation::CDrawRoadsOperation(CMap * map, const CTerrainSelection & terrainSel, ERoadType::ERoadType roadType, CRandomGenerator * gen):
@ -351,4 +353,3 @@ CDrawRoadsOperation::ValidationResult CDrawRoadsOperation::validateTile(const Ro
return result;
}