mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Merge pull request #190 from vmarkovtsev/feature/fix_uf_warning
Fix unused function warning in release mode
This commit is contained in:
@@ -140,10 +140,12 @@ static bool ruleIsSomething(const std::string & rule)
|
|||||||
return rule == "+";
|
return rule == "+";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
static bool ruleIsAny(const std::string & rule)
|
static bool ruleIsAny(const std::string & rule)
|
||||||
{
|
{
|
||||||
return rule == "?";
|
return rule == "?";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
///CDrawRoadsOperation
|
///CDrawRoadsOperation
|
||||||
CDrawRoadsOperation::CDrawRoadsOperation(CMap * map, const CTerrainSelection & terrainSel, ERoadType::ERoadType roadType, CRandomGenerator * gen):
|
CDrawRoadsOperation::CDrawRoadsOperation(CMap * map, const CTerrainSelection & terrainSel, ERoadType::ERoadType roadType, CRandomGenerator * gen):
|
||||||
@@ -351,4 +353,3 @@ CDrawRoadsOperation::ValidationResult CDrawRoadsOperation::validateTile(const Ro
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user