Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill a now useless field
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 26 Feb 2023 13:15:14 +0000 (14:15 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 26 Feb 2023 15:07:48 +0000 (16:07 +0100)
src/kernel/activity/ExecImpl.cpp
src/kernel/activity/ExecImpl.hpp

index 6d66a12..83e3b28 100644 (file)
@@ -179,9 +179,6 @@ void ExecImpl::finish()
   if (get_actor() != nullptr)
     get_actor()->activities_.erase(this);
 
-  if (get_state() != State::FAILED && cb_id_ >= 0)
-    s4u::Host::on_state_change.disconnect(cb_id_);
-
   while (not simcalls_.empty()) {
     actor::Simcall* simcall = simcalls_.front();
     simcalls_.pop_front();
index 583783a..37c0f0d 100644 (file)
@@ -19,7 +19,6 @@ class XBT_PUBLIC ExecImpl : public ActivityImpl_T<ExecImpl> {
   std::vector<double> flops_amounts_;
   std::vector<double> bytes_amounts_;
   int thread_count_ = 1;
-  int cb_id_ = -1; // callback id from Host::on_state_change.connect()
 
 public:
   ExecImpl();