Skip to content

Commit 8ff9b68

Browse files
committed
Remove dead code
1 parent b76177c commit 8ff9b68

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/symbolize/gimli.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -472,10 +472,7 @@ pub unsafe fn resolve(what: ResolveWhat<'_>, cb: &mut dyn FnMut(&super::Symbol))
472472
}
473473
if !any_frames {
474474
if let Some(name) = cx.object.search_symtab(addr as u64) {
475-
call(Symbol::Symtab {
476-
addr: addr as *mut c_void,
477-
name,
478-
});
475+
call(Symbol::Symtab { name });
479476
}
480477
}
481478
});
@@ -491,7 +488,7 @@ pub enum Symbol<'a> {
491488
},
492489
/// Couldn't find debug information, but we found it in the symbol table of
493490
/// the elf executable.
494-
Symtab { addr: *mut c_void, name: &'a [u8] },
491+
Symtab { name: &'a [u8] },
495492
}
496493

497494
impl Symbol<'_> {

0 commit comments

Comments
 (0)