Skip to content

Commit

Permalink
remove error::trace
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bk committed Dec 14, 2023
1 parent dd92260 commit 7b230f5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions pdf/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@ pub enum PdfError {
Invalid,
}
impl PdfError {
pub fn trace(&self) {
trace(self, 0);
}
pub fn is_eof(&self) -> bool {
match self {
PdfError::EOF => true,
Expand All @@ -205,13 +202,6 @@ impl globalcache::ValueSize for PdfError {
}
}

fn trace(err: &dyn Error, depth: usize) {
println!("{}: {}", depth, err);
if let Some(source) = err.source() {
trace(source, depth+1);
}
}

#[derive(Debug)]
pub struct Context(pub Vec<(&'static str, String)>);
impl std::fmt::Display for Context {
Expand Down
1 change: 0 additions & 1 deletion pdf/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ macro_rules! run {
match $e {
Ok(v) => v,
Err(e) => {
e.trace();
panic!("{}", e);
}
}
Expand Down

0 comments on commit 7b230f5

Please sign in to comment.