mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Remove unneeded assert (code below handles it) and a warning. Fixes #5230.
This commit is contained in:
parent
d7b6961104
commit
3815cb4a81
2 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue