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" --- debuginfo.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'debuginfo.cpp') diff --git a/debuginfo.cpp b/debuginfo.cpp index 59636d4a..e8450399 100644 --- a/debuginfo.cpp +++ b/debuginfo.cpp @@ -222,12 +222,6 @@ Ref DebugInfoParser::Parse(Ref view, Ref exist } -bool DebugInfoParser::IsExternal() const -{ - return BNIsDebugInfoParserExternal(m_object); -} - - bool DebugInfoParser::IsValidForView(const Ref view) const { return BNIsDebugInfoParserValidForView(m_object, view->GetObject()); @@ -238,12 +232,6 @@ bool DebugInfoParser::IsValidForView(const Ref view) const // Plugin registration APIs // ////////////////////////////// -bool CustomDebugInfoParser::IsExternalCallback(void* ctxt) -{ - CustomDebugInfoParser* parser = (CustomDebugInfoParser*)ctxt; - return parser->IsExternal(); -} - bool CustomDebugInfoParser::IsValidCallback(void* ctxt, BNBinaryView* view) { @@ -261,5 +249,5 @@ void CustomDebugInfoParser::ParseCallback(void* ctxt, BNDebugInfo* debugInfo, BN CustomDebugInfoParser::CustomDebugInfoParser(const string& name) : DebugInfoParser( - BNNewDebugInfoParserReference(BNRegisterDebugInfoParser(name.c_str(), IsExternalCallback, IsValidCallback, ParseCallback, this))) + BNNewDebugInfoParserReference(BNRegisterDebugInfoParser(name.c_str(), IsValidCallback, ParseCallback, this))) {} -- cgit v1.3.1