From 6812a09d4989db854967f0d7ff81a5e06d89e868 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 2 Jul 2019 11:44:04 +0200 Subject: [PATCH 1/1] Kill unused static functions (dead code). --- src/instr/instr_paje_trace.cpp | 14 -------------- src/mc/mc_global.cpp | 18 ------------------ 2 files changed, 32 deletions(-) diff --git a/src/instr/instr_paje_trace.cpp b/src/instr/instr_paje_trace.cpp index f880887903..601517d19c 100644 --- a/src/instr/instr_paje_trace.cpp +++ b/src/instr/instr_paje_trace.cpp @@ -68,20 +68,6 @@ void TRACE_paje_dump_buffer(bool force) XBT_DEBUG("%s: ends", __func__); } -static void buffer_debug(std::vector* buf) -{ - if (not XBT_LOG_ISENABLED(instr_paje_trace, xbt_log_priority_debug)) - return; - XBT_DEBUG(">>>>>> Dump the state of the buffer. %zu events", buf->size()); - for (auto const& event : *buf) { - event->print(); - XBT_DEBUG("%p %s", event, event->stream_.str().c_str()); - event->stream_.str(""); - event->stream_.clear(); - } - XBT_DEBUG("<<<<<<"); -} - /* internal do the instrumentation module */ void simgrid::instr::PajeEvent::insert_into_buffer() { diff --git a/src/mc/mc_global.cpp b/src/mc/mc_global.cpp index b9a76cca01..944de529aa 100644 --- a/src/mc/mc_global.cpp +++ b/src/mc/mc_global.cpp @@ -134,24 +134,6 @@ void dumpStack(FILE* file, unw_cursor_t&& cursor) } } - -static void MC_dump_stacks(FILE* file) -{ - int nstack = 0; - for (auto const& stack : mc_model_checker->process().stack_areas()) { - fprintf(file, "Stack %i:\n", nstack); - nstack++; - - simgrid::mc::UnwindContext context; - unw_context_t raw_context = - (unw_context_t) mc_model_checker->process().read( - simgrid::mc::remote((unw_context_t *)stack.context)); - context.initialize(&mc_model_checker->process(), &raw_context); - - unw_cursor_t cursor = context.cursor(); - simgrid::mc::dumpStack(file, std::move(cursor)); - } -} #endif double MC_process_clock_get(smx_actor_t process) -- 2.20.1