From 41adabdd02af4d7b5011943acabad304ba5ffc8d Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 10 Dec 2017 00:04:26 +0100 Subject: [PATCH] sonar: remove unused parameter --- src/simix/ActorImpl.cpp | 2 +- src/simix/smx_host.cpp | 7 +++---- src/simix/smx_host_private.hpp | 3 +-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index 87965c9fda..2db4aeb504 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -221,7 +221,7 @@ smx_activity_t ActorImpl::suspend(ActorImpl* issuer) return nullptr; } else { - return SIMIX_execution_start(this, "suspend", 0.0, 1.0, 0.0, this->host); + return SIMIX_execution_start("suspend", 0.0, 1.0, 0.0, this->host); } } diff --git a/src/simix/smx_host.cpp b/src/simix/smx_host.cpp index 69db925aac..b736f17a9e 100644 --- a/src/simix/smx_host.cpp +++ b/src/simix/smx_host.cpp @@ -149,12 +149,11 @@ boost::intrusive_ptr simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority, double bound, sg_host_t host) { - return SIMIX_execution_start(simcall->issuer, name, flops_amount, priority, bound, host); + return SIMIX_execution_start(name, flops_amount, priority, bound, host); } -boost::intrusive_ptr SIMIX_execution_start(smx_actor_t issuer, const char* name, - double flops_amount, double priority, - double bound, sg_host_t host) +boost::intrusive_ptr +SIMIX_execution_start(const char* name, double flops_amount, double priority, double bound, sg_host_t host) { /* alloc structures and initialize */ diff --git a/src/simix/smx_host_private.hpp b/src/simix/smx_host_private.hpp index b90f1896ed..f4b6a9601f 100644 --- a/src/simix/smx_host_private.hpp +++ b/src/simix/smx_host_private.hpp @@ -55,8 +55,7 @@ XBT_PRIVATE void SIMIX_set_category(smx_activity_t synchro, const char* category } XBT_PRIVATE boost::intrusive_ptr -SIMIX_execution_start(smx_actor_t issuer, const char* name, double flops_amount, double priority, double bound, - sg_host_t host); +SIMIX_execution_start(const char* name, double flops_amount, double priority, double bound, sg_host_t host); XBT_PRIVATE boost::intrusive_ptr SIMIX_execution_parallel_start(const char* name, int host_nb, sg_host_t* host_list, double* flops_amount, double* bytes_amount, double rate, double timeout); -- 2.20.1