From d07b69d21eb5beec1c83d48437a43a0521d5c283 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sat, 2 Dec 2017 15:03:21 +0100 Subject: [PATCH] Remove unused swag hookups. --- src/mc/mc_global.cpp | 4 ---- src/simix/ActorImpl.hpp | 1 - src/surf/surf_interface.hpp | 2 -- 3 files changed, 7 deletions(-) diff --git a/src/mc/mc_global.cpp b/src/mc/mc_global.cpp index b14329839c..c04b5f3e19 100644 --- a/src/mc/mc_global.cpp +++ b/src/mc/mc_global.cpp @@ -99,10 +99,6 @@ void MC_run() simgrid::mc::processes_time.resize(SIMIX_process_get_maxpid()); MC_ignore_heap(simgrid::mc::processes_time.data(), simgrid::mc::processes_time.size() * sizeof(simgrid::mc::processes_time[0])); - for (auto const& kv : simix_global->process_list) { - smx_actor_t actor = kv.second; - MC_ignore_heap(&(actor->process_hookup), sizeof(actor->process_hookup)); - } simgrid::mc::Client::get()->mainLoop(); simgrid::mc::processes_time.clear(); } diff --git a/src/simix/ActorImpl.hpp b/src/simix/ActorImpl.hpp index 06d42dc7da..b0c3b44917 100644 --- a/src/simix/ActorImpl.hpp +++ b/src/simix/ActorImpl.hpp @@ -38,7 +38,6 @@ public: ~ActorImpl(); // TODO, replace with boost intrusive container hooks - s_xbt_swag_hookup_t process_hookup = { nullptr, nullptr }; /* simix_global->process_list */ s_xbt_swag_hookup_t synchro_hookup = { nullptr, nullptr }; /* {mutex,cond,sem}->sleeping */ s_xbt_swag_hookup_t host_proc_hookup = { nullptr, nullptr }; /* smx_host->process_lis */ s_xbt_swag_hookup_t destroy_hookup = { nullptr, nullptr }; /* simix_global->process_to_destroy */ diff --git a/src/surf/surf_interface.hpp b/src/surf/surf_interface.hpp index 3809adee86..339df0da7f 100644 --- a/src/surf/surf_interface.hpp +++ b/src/surf/surf_interface.hpp @@ -239,8 +239,6 @@ public: /** @brief Get the state set in which the action is */ ActionList* getStateSet() const { return stateSet_; }; - s_xbt_swag_hookup_t stateHookup_ = {nullptr,nullptr}; - simgrid::surf::Model* getModel() const { return model_; } protected: -- 2.20.1