diff --git a/parley/src/builder.rs b/parley/src/builder.rs index c0ea9054..31def400 100644 --- a/parley/src/builder.rs +++ b/parley/src/builder.rs @@ -145,15 +145,6 @@ fn build_into_layout( layout.data.base_level = lcx.bidi.base_level(); layout.data.text_len = text.len(); - // println!("BUILD INTO ({})", text.len()); - // for span in &lcx.styles { - // let stack = lcx.rcx.stack(span.style.font_stack); - // println!( - // "{:?} weight:{}, family: {:?}", - // span.range, span.style.font_weight, stack - // ); - // } - let mut char_index = 0; for (i, style) in lcx.styles.iter().enumerate() { for _ in text[style.range.clone()].chars() { @@ -172,8 +163,6 @@ fn build_into_layout( // Note: It's important that this is a stable sort to allow users to control the order of contiguous inline boxes lcx.inline_boxes.sort_by_key(|b| b.index); - // dbg!(&lcx.inline_boxes); - { let query = fcx.collection.query(&mut fcx.source_cache); super::shape::shape_text( diff --git a/parley/src/resolve/range.rs b/parley/src/resolve/range.rs index 28da7821..ceb25932 100644 --- a/parley/src/resolve/range.rs +++ b/parley/src/resolve/range.rs @@ -125,10 +125,6 @@ impl RangedStyleBuilder { } styles.truncate(styles.len() - merged_count); - // for span in styles.iter() { - // println!("{:?} weight:{}", span.range, span.style.font_weight); - // } - self.properties.clear(); self.default_style = ResolvedStyle::default(); self.len = !0; diff --git a/parley/src/resolve/tree.rs b/parley/src/resolve/tree.rs index 40867c77..dbe88846 100644 --- a/parley/src/resolve/tree.rs +++ b/parley/src/resolve/tree.rs @@ -172,17 +172,6 @@ impl TreeStyleBuilder { self.push_uncommitted_text(true); - // println!("FINISH TREE"); - // dbg!(self.total_text_len); - // dbg!(&self.tree); - // for span in &self.flatted_styles { - // println!("{:?} weight:{}", span.range, span.style.font_weight); - // } - // dbg!(&self.flatted_styles); - - // println!("TEXT"); - // dbg!(&self.text); - styles.clear(); styles.extend_from_slice(&self.flatted_styles);