Remove existing trace calls.

This commit is contained in:
Tom Alexander 2022-11-26 18:27:36 -05:00
parent 99f9450eda
commit a09c6838b3
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 0 additions and 4 deletions

View File

@ -68,7 +68,6 @@ impl<'r> OrgModeContextTree<'r> for OrgModeContext<'r> {
}
fn match_fail<'s>(&'r self, i: &'s str) -> IResult<&'s str, &'s str, VerboseError<&'s str>> {
trace!("Checking for fail with \"{}\"", i);
let mut current_node = self.head.as_ref();
while current_node.is_some() {
let current_node_unwrapped = current_node
@ -78,7 +77,6 @@ impl<'r> OrgModeContextTree<'r> for OrgModeContext<'r> {
ChainBehavior::AndParent(Some(matcher)) => {
let local_result = matcher(i);
if local_result.is_ok() {
trace!("FAIL MATCHED");
return local_result;
}
}
@ -86,7 +84,6 @@ impl<'r> OrgModeContextTree<'r> for OrgModeContext<'r> {
ChainBehavior::IgnoreParent(Some(matcher)) => {
let local_result = matcher(i);
if local_result.is_ok() {
trace!("FAIL MATCHED");
return local_result;
}
// TODO: Make this a custom error

View File

@ -93,6 +93,5 @@ pub fn paragraph<'s, 'r>(
let paragraph_context = context.with_additional_fail_matcher(&paragraph_end);
let text_element_parser = parser_with_context!(flat_text_element)(&paragraph_context);
let ret = many_till(text_element_parser, paragraph_end)(i);
trace!("Returning from paragraph with {:#?}", ret);
ret
}