From f6c0000d54b4220bfac8e0ff45f392d48b035e7c Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 15 Jun 2017 02:31:21 +0200 Subject: [PATCH 1/1] these static casts are useless --- src/simix/ActorImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index 0d207a81d9..2efe7b7e59 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -93,7 +93,7 @@ void SIMIX_process_cleanup(smx_actor_t process) xbt_os_mutex_acquire(simix_global->mutex); /* cancel non-blocking communications */ - smx_activity_t synchro = static_cast(process->comms.front()); + smx_activity_t synchro = process->comms.front(); while (not process->comms.empty()) { simgrid::kernel::activity::CommImplPtr comm = boost::static_pointer_cast(synchro); @@ -119,7 +119,7 @@ void SIMIX_process_cleanup(smx_actor_t process) xbt_die("Communication synchro %p is in my list but I'm not the sender nor the receiver", synchro); } process->comms.pop_front(); - synchro = static_cast(process->comms.front()); + synchro = process->comms.front(); comm->cancel(); } -- 2.20.1