From c124649942221581f4ddac01832ff3ad3fb6770b Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 18 Apr 2019 18:22:17 +0200 Subject: [PATCH] Tidy up mc/mc_unw a little. --- src/mc/mc_unw.cpp | 8 -------- src/mc/mc_unw.hpp | 5 ----- 2 files changed, 13 deletions(-) diff --git a/src/mc/mc_unw.cpp b/src/mc/mc_unw.cpp index 78299e3a65..b9a4ceab64 100644 --- a/src/mc/mc_unw.cpp +++ b/src/mc/mc_unw.cpp @@ -220,16 +220,8 @@ unw_addr_space_t UnwindContext::createUnwindAddressSpace() return unw_create_addr_space(&UnwindContext::accessors, BYTE_ORDER); } -void UnwindContext::clear() -{ - addressSpace_ = nullptr; - process_ = nullptr; -} - void UnwindContext::initialize(simgrid::mc::RemoteClient* process, unw_context_t* c) { - clear(); - this->addressSpace_ = process; this->process_ = process; diff --git a/src/mc/mc_unw.hpp b/src/mc/mc_unw.hpp index aedcf7e98d..f629b8cf02 100644 --- a/src/mc/mc_unw.hpp +++ b/src/mc/mc_unw.hpp @@ -48,12 +48,7 @@ class UnwindContext { unw_context_t unwindContext_; public: - UnwindContext() = default; - UnwindContext(const UnwindContext&) = default; - UnwindContext& operator=(const UnwindContext&) = default; - ~UnwindContext() { clear(); } void initialize(simgrid::mc::RemoteClient* process, unw_context_t* c); - void clear(); unw_cursor_t cursor(); private: // Methods and virtual table for libunwind -- 2.20.1