Remove logs I reintroduced

This commit is contained in:
Greg Johnston 2022-11-06 20:43:05 -05:00
parent 49820ccba6
commit 10e01bf989

View file

@ -276,21 +276,21 @@ fn element_to_tokens(
quote_spanned! {
span => let #this_el_ident = #debug_name;
let #this_el_ident = #parent.clone().unchecked_into::<web_sys::Node>();
log::debug!("=> got {}", #this_el_ident.node_name());
//debug!("=> got {}", #this_el_ident.node_name());
}
} else if let Some(prev_sib) = &prev_sib {
quote_spanned! {
span => let #this_el_ident = #debug_name;
log::debug!("next_sibling ({})", #debug_name);
//log::debug!("next_sibling ({})", #debug_name);
let #this_el_ident = #prev_sib.next_sibling().unwrap_throw();
log::debug!("=> got {}", #this_el_ident.node_name());
//log::debug!("=> got {}", #this_el_ident.node_name());
}
} else {
quote_spanned! {
span => let #this_el_ident = #debug_name;
log::debug!("first_child ({})", #debug_name);
//log::debug!("first_child ({})", #debug_name);
let #this_el_ident = #parent.first_child().unwrap_throw();
log::debug!("=> got {}", #this_el_ident.node_name());
//log::debug!("=> got {}", #this_el_ident.node_name());
}
};
navigations.push(this_nav);
@ -809,15 +809,15 @@ fn component_to_tokens(
let starts_at = if let Some(prev_sib) = prev_sib {
quote::quote! {{
log::debug!("starts_at = next_sibling");
//log::debug!("starts_at = next_sibling");
#prev_sib.next_sibling().unwrap_throw()
log::debug!("ok starts_at");
//log::debug!("ok starts_at");
}}
} else {
quote::quote! {{
log::debug!("starts_at first_child");
//log::debug!("starts_at first_child");
#parent.first_child().unwrap_throw()
log::debug!("starts_at ok");
//log::debug!("starts_at ok");
}}
};