Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
stringify s4u::Mailbox and k::a::MailboxImpl
[simgrid.git] / src / s4u / s4u_Mailbox.cpp
index 0170e6f..03c12aa 100644 (file)
@@ -24,7 +24,7 @@ const char* Mailbox::get_cname() const
   return pimpl_->get_cname();
 }
 
-MailboxPtr Mailbox::by_name(const char* name)
+MailboxPtr Mailbox::by_name(std::string name)
 {
   kernel::activity::MailboxImpl* mbox = kernel::activity::MailboxImpl::byNameOrNull(name);
   if (mbox == nullptr) {
@@ -33,11 +33,6 @@ MailboxPtr Mailbox::by_name(const char* name)
   return MailboxPtr(&mbox->piface_, true);
 }
 
-MailboxPtr Mailbox::by_name(std::string name)
-{
-  return by_name(name.c_str());
-}
-
 bool Mailbox::empty()
 {
   return pimpl_->comm_queue.empty();