From 094c97e3586d1703f0d01e539b2570b535ccbe2b Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 15 Dec 2010 15:11:01 +0000 Subject: [PATCH] Kill the braindead MSG_task_refcount_dec() function. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9251 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- ChangeLog | 2 ++ include/msg/msg.h | 1 - src/msg/task.c | 6 ------ 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index b28bb47032..726c1838c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ SimGrid (3.6) unstable; urgency=low MSG * Change the prototypes of action replay. Sorry for inconvenience, but this is really more efficient this way. + * Kill the braindead MSG_task_refcount_dec() function. I guess nobody + ever managed to do anything useful with it. SURF * New model for multi-core CPUs. You can now use the core attribute to diff --git a/include/msg/msg.h b/include/msg/msg.h index 1ce1cf5fef..a27b6e0adb 100644 --- a/include/msg/msg.h +++ b/include/msg/msg.h @@ -123,7 +123,6 @@ XBT_PUBLIC(const char *) MSG_task_get_name(m_task_t task); XBT_PUBLIC(void) MSG_task_set_name(m_task_t task, const char *name); XBT_PUBLIC(MSG_error_t) MSG_task_cancel(m_task_t task); XBT_PUBLIC(MSG_error_t) MSG_task_destroy(m_task_t task); -XBT_PUBLIC(void) MSG_task_refcount_dec(m_task_t task); XBT_PUBLIC(MSG_error_t) MSG_task_get(m_task_t * task, m_channel_t channel); XBT_PUBLIC(MSG_error_t) MSG_task_get_with_timeout(m_task_t * task, diff --git a/src/msg/task.c b/src/msg/task.c index d5d094443a..88c743da21 100644 --- a/src/msg/task.c +++ b/src/msg/task.c @@ -154,12 +154,6 @@ void MSG_task_set_name(m_task_t task, const char *name) task->name = xbt_strdup(name); } - -void MSG_task_refcount_dec(m_task_t task) -{ - task->simdata->refcount--; -} - /** \ingroup m_task_management * \brief Destroy a #m_task_t. * -- 2.20.1