From 4d05bf23b82b7e36210aaa2e911ec4c79a1ed2d0 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Wed, 27 Apr 2016 10:58:16 -0700 Subject: [PATCH] Get rid of unnecessary clamping in text shaping --- components/gfx/text/shaping/harfbuzz.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs index 16057ab88b7..ef472d8f4cc 100644 --- a/components/gfx/text/shaping/harfbuzz.rs +++ b/components/gfx/text/shaping/harfbuzz.rs @@ -424,9 +424,6 @@ impl Shaper { char_byte_span.start = char_byte_span.end; } - // clamp to end of text. (I don't think this will be necessary, but..) - covered_byte_span.end = cmp::min(covered_byte_span.end, byte_max); - // fast path: 1-to-1 mapping of single char and single glyph. if glyph_span.len() == 1 && !glyph_spans_multiple_characters { // TODO(Issue #214): cluster ranges need to be computed before