X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fddfee454784a9895b758165407c57f62152bc6e..09869708c4e9a48cf4e9c6c582444f2349eb137c:/src/kernel/EngineImpl.cpp diff --git a/src/kernel/EngineImpl.cpp b/src/kernel/EngineImpl.cpp index 76a938dd96..676413e478 100644 --- a/src/kernel/EngineImpl.cpp +++ b/src/kernel/EngineImpl.cpp @@ -467,11 +467,7 @@ actor::ActorImpl* EngineImpl::get_actor_by_pid(aid_t pid) if (item != actor_list_.end()) return item->second; - // Search the trash - for (auto& a : actors_to_destroy_) - if (a.get_pid() == pid) - return &a; - return nullptr; // Not found, even in the trash + return nullptr; // Not found } void EngineImpl::remove_daemon(actor::ActorImpl* actor)