From: Martin Quinson Date: Tue, 26 Jul 2016 13:05:39 +0000 (+0200) Subject: kill a useless function X-Git-Tag: v3_14~712 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d57be1de162e5eea2ccf31a8446fe7ab17e5772b kill a useless function --- diff --git a/include/simgrid/msg.h b/include/simgrid/msg.h index ff1bcdf8c3..ae778de98d 100644 --- a/include/simgrid/msg.h +++ b/include/simgrid/msg.h @@ -449,13 +449,6 @@ XBT_PUBLIC(void) MSG_task_set_category (msg_task_t task, const char *category); XBT_PUBLIC(const char *) MSG_task_get_category (msg_task_t task); /************************** Mailbox handling ************************************/ -/* @brief MSG_mailbox_new - create a new mailbox. - * Creates a new mailbox identified by the key specified by the parameter alias and add it in the global dictionary. - * @param alias The alias of the mailbox to create. - * @return The newly created mailbox. - */ -XBT_PUBLIC(msg_mailbox_t) MSG_mailbox_new(const char *alias); - /* @brief MSG_mailbox_get_by_alias - get a mailbox from its alias. * Returns the mailbox associated with the key specified by the parameter alias. If the mailbox does not exists, * the function creates it. diff --git a/src/msg/msg_mailbox.cpp b/src/msg/msg_mailbox.cpp index 470b4c67de..674d89a510 100644 --- a/src/msg/msg_mailbox.cpp +++ b/src/msg/msg_mailbox.cpp @@ -13,11 +13,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_mailbox, msg, "Logging specific to MSG (mailbox)"); -msg_mailbox_t MSG_mailbox_new(const char *alias) -{ - return simcall_mbox_create(alias); -} - int MSG_mailbox_is_empty(msg_mailbox_t mailbox) { return (nullptr == simcall_mbox_front(mailbox)); @@ -38,7 +33,7 @@ msg_mailbox_t MSG_mailbox_get_by_alias(const char *alias) msg_mailbox_t mailbox = simcall_mbox_get_by_name(alias); if (!mailbox) - mailbox = MSG_mailbox_new(alias); + mailbox = simcall_mbox_create(alias); return mailbox; }