From 3815cb4a812721eb9e22d6bc1fb37b1bc65a3a0a Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Fri, 10 Apr 2015 09:55:59 +1000 Subject: [PATCH] Remove unneeded assert (code below handles it) and a warning. Fixes #5230. --- components/gfx/text/shaping/harfbuzz.rs | 2 -- components/layout/inline.rs | 1 - 2 files changed, 3 deletions(-) diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs index 5a8a52cc130..4f473b96174 100644 --- a/components/gfx/text/shaping/harfbuzz.rs +++ b/components/gfx/text/shaping/harfbuzz.rs @@ -278,8 +278,6 @@ impl Shaper { // so, we must be careful to increment this when saving glyph entries. let mut char_idx = CharIndex(0); - assert!(glyph_count <= char_max); - debug!("Shaped text[char count={}], got back {} glyph info records.", char_max, glyph_count); diff --git a/components/layout/inline.rs b/components/layout/inline.rs index c4c5fcfc610..c04190a36eb 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -24,7 +24,6 @@ use gfx::text::glyph::CharIndex; use gfx::text::text_run::TextRun; use std::cmp::max; use std::fmt; -use std::iter; use std::mem; use std::num::ToPrimitive; use std::ops::{Add, Sub, Mul, Div, Rem, Neg, Shl, Shr, Not, BitOr, BitAnd, BitXor};