Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
No need to duplicate variables.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 13 Apr 2021 06:58:53 +0000 (08:58 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 13 Apr 2021 06:58:53 +0000 (08:58 +0200)
src/kernel/activity/CommImpl.cpp

index e9b38ce..303566a 100644 (file)
@@ -579,8 +579,6 @@ void CommImpl::finish()
         simcall->timeout_cb_ = nullptr;
       }
       if (not MC_is_active() && not MC_record_replay_is_active()) {
-        CommImpl** comms   = simcall_comm_waitany__get__comms(simcall);
-        size_t count       = simcall_comm_waitany__get__count(simcall);
         CommImpl** element = std::find(comms, comms + count, this);
         int rank           = (element != comms + count) ? element - comms : -1;
         simcall_comm_waitany__set__result(simcall, rank);