From b9c6552982ab353c57259a577b91cff986646566 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 7 Jul 2022 19:39:18 -0400 Subject: Revert 94649dde0d847aa2407d565632f7d2c3cdff32f5: "Add IsExternal callback to debug info API" --- rust/src/debuginfo.rs | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'rust/src/debuginfo.rs') diff --git a/rust/src/debuginfo.rs b/rust/src/debuginfo.rs index 3ed4e3c6..56786d19 100644 --- a/rust/src/debuginfo.rs +++ b/rust/src/debuginfo.rs @@ -131,10 +131,6 @@ impl DebugInfoParser { unsafe { BNIsDebugInfoParserValidForView(self.handle, view.handle) } } - pub fn is_external(&self) -> bool { - unsafe { BNIsDebugInfoParserExternal(self.handle) } - } - /// Returns a `DebugInfo` object populated with debug info by this debug-info parser. Only provide a `DebugInfo` object if you wish to append to the existing debug info pub fn parse_debug_info( &self, @@ -161,17 +157,6 @@ impl DebugInfoParser { S: BnStrCompatible, C: CustomDebugInfoParser, { - extern "C" fn cb_is_external(ctxt: *mut c_void) -> bool - where - C: CustomDebugInfoParser, - { - ffi_wrap!("CustomDebugInfoParser::is_external", unsafe { - let cmd = &*(ctxt as *const C); - - cmd.is_external() - }) - } - extern "C" fn cb_is_valid(ctxt: *mut c_void, view: *mut BNBinaryView) -> bool where C: CustomDebugInfoParser, @@ -207,7 +192,6 @@ impl DebugInfoParser { unsafe { DebugInfoParser::from_raw(BNRegisterDebugInfoParser( name_ptr, - Some(cb_is_external::), Some(cb_is_valid::), Some(cb_parse_info::), ctxt as *mut _, @@ -659,7 +643,6 @@ impl ToOwned for DebugInfo { /// Implement this trait to implement a debug info parser. See `DebugInfoParser` for more details. pub trait CustomDebugInfoParser: 'static + Sync { - fn is_external(&self) -> bool; fn is_valid(&self, view: &BinaryView) -> bool; fn parse_info(&self, debug_info: &mut DebugInfo, view: &BinaryView); } -- cgit v1.3.1