Skip to content

Commit 7b230f5

Browse files
committed
remove error::trace
1 parent dd92260 commit 7b230f5

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

pdf/src/error.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,6 @@ pub enum PdfError {
184184
Invalid,
185185
}
186186
impl PdfError {
187-
pub fn trace(&self) {
188-
trace(self, 0);
189-
}
190187
pub fn is_eof(&self) -> bool {
191188
match self {
192189
PdfError::EOF => true,
@@ -205,13 +202,6 @@ impl globalcache::ValueSize for PdfError {
205202
}
206203
}
207204

208-
fn trace(err: &dyn Error, depth: usize) {
209-
println!("{}: {}", depth, err);
210-
if let Some(source) = err.source() {
211-
trace(source, depth+1);
212-
}
213-
}
214-
215205
#[derive(Debug)]
216206
pub struct Context(pub Vec<(&'static str, String)>);
217207
impl std::fmt::Display for Context {

pdf/tests/integration.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ macro_rules! run {
1212
match $e {
1313
Ok(v) => v,
1414
Err(e) => {
15-
e.trace();
1615
panic!("{}", e);
1716
}
1817
}

0 commit comments

Comments
 (0)