Skip to content

Commit

Permalink
Remove commented debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Sep 19, 2024
1 parent 2244f53 commit 9f65a4f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
11 changes: 0 additions & 11 deletions parley/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,6 @@ fn build_into_layout<B: Brush>(
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() {
Expand All @@ -172,8 +163,6 @@ fn build_into_layout<B: Brush>(
// 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(
Expand Down
4 changes: 0 additions & 4 deletions parley/src/resolve/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ impl<B: Brush> RangedStyleBuilder<B> {
}
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;
Expand Down
11 changes: 0 additions & 11 deletions parley/src/resolve/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,17 +172,6 @@ impl<B: Brush> TreeStyleBuilder<B> {

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);

Expand Down

0 comments on commit 9f65a4f

Please sign in to comment.