From: Arnaud Giersch Date: Tue, 27 Apr 2021 12:19:25 +0000 (+0200) Subject: Kill dead code. X-Git-Tag: v3.28~369 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a42782f1808235ddc55c1d1de5fc8ad9dc39176b Kill dead code. It's never used, and I doubt that it's entirely correct. --- diff --git a/src/kernel/activity/ActivityImpl.cpp b/src/kernel/activity/ActivityImpl.cpp index 3ce0954a7b..16e3bce599 100644 --- a/src/kernel/activity/ActivityImpl.cpp +++ b/src/kernel/activity/ActivityImpl.cpp @@ -71,20 +71,7 @@ void ActivityImpl::wait_for(actor::ActorImpl* issuer, double timeout) /* Associate this simcall to the synchro */ register_simcall(&issuer->simcall_); - if (MC_is_active() || MC_record_replay_is_active()) { - int idx = issuer->simcall_.mc_value_; - if (idx == 0) { - state_ = State::DONE; - } else { - /* If we reached this point, the wait simcall must have a timeout */ - /* Otherwise it shouldn't be enabled and executed by the MC */ - if (timeout < 0.0) - THROW_IMPOSSIBLE; - state_ = State::TIMEOUT; - } - finish(); - return; - } + xbt_assert(not MC_is_active() && not MC_record_replay_is_active(), "MC is currently not supported here."); /* If the synchro is already finished then perform the error handling */ if (state_ != State::RUNNING)