mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Remove assert which may not always be true
This commit is contained in:
@ -1022,20 +1022,6 @@ void JsonUtils::merge(JsonNode & dest, JsonNode & source, bool ignoreOverride, b
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasNull = dest.isNull() || source.isNull();
|
|
||||||
bool sameType = dest.getType() == source.getType();
|
|
||||||
bool sourceNumeric = source.getType() == JsonNode::JsonType::DATA_FLOAT || source.getType() == JsonNode::JsonType::DATA_INTEGER;
|
|
||||||
bool destNumeric = dest.getType() == JsonNode::JsonType::DATA_FLOAT || dest.getType() == JsonNode::JsonType::DATA_INTEGER;
|
|
||||||
bool bothNumeric = sourceNumeric && destNumeric;
|
|
||||||
|
|
||||||
MAYBE_UNUSED(hasNull);
|
|
||||||
MAYBE_UNUSED(sameType);
|
|
||||||
MAYBE_UNUSED(sourceNumeric);
|
|
||||||
MAYBE_UNUSED(destNumeric);
|
|
||||||
MAYBE_UNUSED(bothNumeric);
|
|
||||||
|
|
||||||
assert( hasNull || sameType || bothNumeric );
|
|
||||||
|
|
||||||
switch (source.getType())
|
switch (source.getType())
|
||||||
{
|
{
|
||||||
case JsonNode::JsonType::DATA_NULL:
|
case JsonNode::JsonType::DATA_NULL:
|
||||||
|
Reference in New Issue
Block a user