Remove unused logging statements

This commit is contained in:
Sebastian Martinez
2025-03-18 13:06:59 -06:00
committed by Rūdolfs Ošiņš
parent 47ea7d78f6
commit 038457ea60
2 changed files with 0 additions and 7 deletions
@@ -217,8 +217,6 @@ where
}
Err(err) => return Some(Err(err)),
}
log::trace!(target: "radicle", "Iterating over commit {}", commit.id());
log::trace!(target: "radicle", "Iterating over tree {}", tree.id());
let entry = self.repo.load(commit.id().into()).ok()?;
let op = Op::from(entry);
@@ -338,7 +336,6 @@ fn action<A>(
where
A: for<'de> Deserialize<'de>,
{
log::trace!(target: "radicle", "Deserializing action {}", blob.id());
let action = json::from_slice::<A>(blob.content())
.map_err(|err| error::Action::new(blob.id().into(), err))?;
-4
View File
@@ -188,7 +188,6 @@ impl Builder {
for event in highlights {
match event? {
ts::HighlightEvent::Source { start, end } => {
println!("highlightEvent::source {start} {end}");
for (i, byte) in code.iter().enumerate().skip(start).take(end - start) {
if *byte == b'\n' {
self.advance();
@@ -208,7 +207,6 @@ impl Builder {
}
ts::HighlightEvent::HighlightStart(h) => {
let name = HIGHLIGHTS[h.0];
println!("highlightEvent::HighlightStart {name}");
self.advance();
self.styles.push(name.to_string());
@@ -282,7 +280,6 @@ impl Highlighter {
let Ok(code) = std::str::from_utf8(code) else {
return Err(ts::Error::Unknown);
};
println!("Not able to detect language?");
return Ok(code.lines().map(Line::new).collect());
};
@@ -291,7 +288,6 @@ impl Highlighter {
let Ok(code) = std::str::from_utf8(code) else {
return Err(ts::Error::Unknown);
};
println!("Not found a configuration?");
return Ok(code.lines().map(Line::new).collect());
};