From 909ce8155f44e9594ad3efde584bc0a4817f2fb2 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:01:21 -0400 Subject: [PATCH] Remove some old junk from the universal mach-o bodge --- src/symbols/symbols_with_libdwarf.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/symbols/symbols_with_libdwarf.cpp b/src/symbols/symbols_with_libdwarf.cpp index f68cc53..ea52632 100644 --- a/src/symbols/symbols_with_libdwarf.cpp +++ b/src/symbols/symbols_with_libdwarf.cpp @@ -78,9 +78,6 @@ namespace libdwarf { // Vector of ranges and their corresponding CU offsets std::vector cu_cache; - // Exists only for cleaning up an awful mach-o hack - std::string tmp_object_path; - // Error handling helper // For some reason R (*f)(Args..., void*)-style deduction isn't possible, seems like a bug in all compilers // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56190 @@ -179,10 +176,6 @@ namespace libdwarf { } cu_cache.clear(); dwarf_finish(dbg); - // cleanup awful mach-o hack - if(!tmp_object_path.empty()) { - unlink(tmp_object_path.c_str()); - } } dwarf_resolver(const dwarf_resolver&) = delete; @@ -196,8 +189,7 @@ namespace libdwarf { arange_count(other.arange_count), line_contexts(std::move(other.line_contexts)), subprograms_cache(std::move(other.subprograms_cache)), - cu_cache(std::move(other.cu_cache)), - tmp_object_path(std::move(other.tmp_object_path)) + cu_cache(std::move(other.cu_cache)) { other.dbg = nullptr; other.aranges = nullptr; @@ -212,7 +204,6 @@ namespace libdwarf { line_contexts = std::move(other.line_contexts); subprograms_cache = std::move(other.subprograms_cache); cu_cache = std::move(other.cu_cache); - tmp_object_path = std::move(other.tmp_object_path); other.dbg = nullptr; other.aranges = nullptr; return *this;