From a5a93931281b01da0c7c57ce1dd56e26c8429e39 Mon Sep 17 00:00:00 2001 From: rszyma Date: Wed, 31 Jan 2024 11:30:43 +0100 Subject: [PATCH] remove excessive logging --- kls/src/formatter/ext_tree.rs | 6 ------ kls/src/formatter/mod.rs | 1 - 2 files changed, 7 deletions(-) diff --git a/kls/src/formatter/ext_tree.rs b/kls/src/formatter/ext_tree.rs index 3442ca4..ff6509e 100644 --- a/kls/src/formatter/ext_tree.rs +++ b/kls/src/formatter/ext_tree.rs @@ -331,7 +331,6 @@ impl<'a> From> for Span { pub fn parse_into_ext_tree_and_root_span( src: &str, ) -> std::result::Result<(ExtParseTree, CustomSpan<'_>), ParseError> { - let start_time = helpers::now(); let filename = ""; let (exprs, exprs_ext) = sexpr::parse_(src, filename, false)?; let exprs: Vec = exprs.into_iter().map(SExpr::List).collect(); @@ -423,11 +422,6 @@ pub fn parse_into_ext_tree_and_root_span( tree.push_metadata(tree_depth, metadata.into()); } - log!( - "parse_into_ext_tree_and_root_span in {:.3?}", - helpers::now().duration_since(start_time) - ); - Ok((tree, root_span)) } diff --git a/kls/src/formatter/mod.rs b/kls/src/formatter/mod.rs index c148817..66a6389 100644 --- a/kls/src/formatter/mod.rs +++ b/kls/src/formatter/mod.rs @@ -34,7 +34,6 @@ impl Formatter { } if self.options.use_defsrc_layout_on_deflayers { - log!("formatting defsrc - layout: {:?}", defsrc_layout); if let Some(layout) = defsrc_layout { tree.use_defsrc_layout_on_deflayers( layout,