mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-01 01:30:46 +08:00
Remove unused logging statements
This commit is contained in:
@@ -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))?;
|
||||
|
||||
|
||||
@@ -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());
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user