File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -184,9 +184,6 @@ pub enum PdfError {
184
184
Invalid ,
185
185
}
186
186
impl PdfError {
187
- pub fn trace ( & self ) {
188
- trace ( self , 0 ) ;
189
- }
190
187
pub fn is_eof ( & self ) -> bool {
191
188
match self {
192
189
PdfError :: EOF => true ,
@@ -205,13 +202,6 @@ impl globalcache::ValueSize for PdfError {
205
202
}
206
203
}
207
204
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
-
215
205
#[ derive( Debug ) ]
216
206
pub struct Context ( pub Vec < ( & ' static str , String ) > ) ;
217
207
impl std:: fmt:: Display for Context {
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ macro_rules! run {
12
12
match $e {
13
13
Ok ( v) => v,
14
14
Err ( e) => {
15
- e. trace( ) ;
16
15
panic!( "{}" , e) ;
17
16
}
18
17
}
You can’t perform that action at this time.
0 commit comments