ng_width: turn min width check into assert

This commit is contained in:
Justin Viiret 2018-01-16 14:56:04 +11:00 committed by Chang, Harry
parent 6f81516bce
commit cadc7028b1

View File

@ -176,11 +176,7 @@ depth findMaxWidth(const NGHolder &h, const SpecialEdgeFilter &filter,
}
if (d.is_unreachable()) {
// If we're actually reachable, we'll have a min width, so we can
// return infinity in this case.
if (findMinWidth(h, filter, src).is_reachable()) {
return depth::infinity();
}
assert(findMinWidth(h, filter, src).is_unreachable());
return d;
}