Skip to content

Commit d868c4c

Browse files
committed
Removed debug print statements.
1 parent 2bfc00f commit d868c4c

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

moos-parser/src/nsplug/lexer.rs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,6 @@ impl<'input> Lexer<'input> {
571571
}
572572
}
573573

574-
tracing::info!("Tokenizing tag");
575-
576574
let mut iter = self.iter.clone();
577575

578576
let ii = if let Some(((ii, cc), (_iii, _ccc))) =
@@ -598,35 +596,27 @@ impl<'input> Lexer<'input> {
598596
}
599597
}
600598
// We've found the <tag> keyword
601-
tracing::info!("Found Tag Keyword.");
602599
self.iter = iter;
603600

604601
// Need to push any unhandled tokens into the buffer before
605602
// the <tag>. Reset the previous index
606603
self.previous_index = index_before_tag;
607-
tracing::info!("About to push whitespace: {}", self.char_count);
608604
if let Some((prev_i, unhandled)) = self.get_unhandled_string(i) {
609605
if !unhandled.is_empty() && unhandled.trim().is_empty() {
610606
// Push the indent as a whitespace token.
611-
tracing::info!(
612-
"Pushing whitespace '{unhandled}' i:{i} char_count: {}",
613-
self.char_count
614-
);
615607
self.push_token(prev_i, Token::WhiteSpace(unhandled), i);
616608
}
617609
self.previous_index = self.get_safe_index(i);
618610
}
619611

620-
tracing::info!("Pushed whitespace i: {i} char_count: {}", self.char_count);
621-
622612
self.push_token(i, Token::LeftAngleBracket, i + 1);
623613
self.previous_index = self.get_safe_index(i + 1);
624-
tracing::info!("Pushed LeftAngleBracket");
614+
625615
self.push_token(i + 1, Token::TagKeyword, ii);
626-
tracing::info!("Pushed TagKeyword");
616+
627617
self.push_token(ii, Token::RightAngleBracket, ii + 1);
628618
self.previous_index = self.get_safe_index(ii + 1);
629-
tracing::info!("Pushed RightAngleBracket");
619+
630620
// Now process the tag name
631621

632622
let (ii, next_index) = if let Some(((ii, cc), (_iii, ccc))) =

moos-parser/src/nsplug/tree.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ impl MacroType {
280280
|| (start_index + new_text.len() as u32) != line_end_index
281281
{
282282
let new_text = indent + new_text.as_str();
283-
tracing::info!("Formatting line({line}): '{new_text}'");
284283
lines.push(create_text_edit(new_text, line, 0, line_end_index));
285284
}
286285

@@ -703,7 +702,6 @@ impl TextFormatter for IfDefBranch {
703702
|| (start_index + new_text.len() as u32) != *line_end_index
704703
{
705704
let new_text = new_indent.clone() + new_text.as_str();
706-
tracing::info!("Formatting line({line}): '{new_text}'");
707705
lines.push(create_text_edit(new_text, *line, 0, *line_end_index));
708706
}
709707

@@ -730,7 +728,6 @@ impl TextFormatter for IfDefBranch {
730728
|| (start_index + new_text.len() as u32) != *line_end_index
731729
{
732730
let new_text = new_indent.clone() + new_text.as_str();
733-
tracing::info!("Formatting line({line}): '{new_text}'");
734731
lines.push(create_text_edit(new_text, *line, 0, *line_end_index));
735732
}
736733

@@ -745,7 +742,6 @@ impl TextFormatter for IfDefBranch {
745742
|| (start_index + new_text.len() as u32) != *endif_line_end_index
746743
{
747744
let new_text = new_indent + new_text.as_str();
748-
tracing::info!("Formatting line({line}): '{new_text}'");
749745
lines.push(create_text_edit(
750746
new_text,
751747
*endif_line,
@@ -765,7 +761,6 @@ impl TextFormatter for IfDefBranch {
765761
|| (start_index + new_text.len() as u32) != *line_end_index
766762
{
767763
let new_text = new_indent + new_text.as_str();
768-
tracing::info!("Formatting line({line}): '{new_text}'");
769764
lines.push(create_text_edit(new_text, *line, 0, *line_end_index));
770765
}
771766
}
@@ -886,7 +881,6 @@ impl TextFormatter for IfNotDefBranch {
886881
|| (start_index + new_text.len() as u32) != *line_end_index
887882
{
888883
let new_text = new_indent.clone() + new_text.as_str();
889-
tracing::info!("Formatting line({line}): '{new_text}'");
890884
lines.push(create_text_edit(new_text, *line, 0, *line_end_index));
891885
}
892886

@@ -901,7 +895,6 @@ impl TextFormatter for IfNotDefBranch {
901895
|| (start_index + new_text.len() as u32) != *endif_line_end_index
902896
{
903897
let new_text = new_indent + new_text.as_str();
904-
tracing::info!("Formatting line({line}): '{new_text}'");
905898
lines.push(create_text_edit(
906899
new_text,
907900
*endif_line,
@@ -921,7 +914,6 @@ impl TextFormatter for IfNotDefBranch {
921914
|| (start_index + new_text.len() as u32) != *line_end_index
922915
{
923916
let new_text = new_indent + new_text.as_str();
924-
tracing::info!("Formatting line({line}): '{new_text}'");
925917
lines.push(create_text_edit(new_text, *line, 0, *line_end_index));
926918
}
927919
}

0 commit comments

Comments
 (0)