From 7ef4f456f05a338c0c56c1e1a3f973719ea8f918 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christophe=20Thi=C3=A9ry?= Date: Fri, 14 Oct 2011 17:09:00 +0200 Subject: [PATCH] Make cancelling a non-running task a no-op --- src/msg/task.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/msg/task.c b/src/msg/task.c index b0df136d09..877467c1cd 100644 --- a/src/msg/task.c +++ b/src/msg/task.c @@ -200,13 +200,6 @@ MSG_error_t MSG_task_cancel(m_task_t task) SIMIX_req_comm_cancel(task->simdata->comm); task->simdata->isused = 0; } - else { - static int warned = 0; - if (!warned) { - XBT_WARN("Cannot cancel a non-running task"); - warned = 1; - } - } return MSG_OK; } -- 2.20.1