Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill a useless function
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 26 Jul 2016 13:05:39 +0000 (15:05 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 26 Jul 2016 13:05:39 +0000 (15:05 +0200)
include/simgrid/msg.h
src/msg/msg_mailbox.cpp

index ff1bcdf..ae778de 100644 (file)
@@ -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.
index 470b4c6..674d89a 100644 (file)
 
 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;
 }