Fix useless comparison in inline layout code revealed by new upstream rustc.

This commit is contained in:
Brian J. Burg 2012-11-01 19:44:33 -07:00
parent 50a74ac2bf
commit e06da115a8

View file

@ -189,7 +189,7 @@ impl TextRunScanner {
// helper functions
pure fn can_coalesce_text_nodes(boxes: &[@RenderBox], left_i: uint, right_i: uint) -> bool {
assert left_i >= 0 && left_i < boxes.len();
assert left_i < boxes.len();
assert right_i > 0 && right_i < boxes.len();
assert left_i != right_i;