From: Martin Quinson Date: Sat, 13 Aug 2016 21:56:51 +0000 (+0200) Subject: kill unused type sg_mbox_t X-Git-Tag: v3_14~564 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ccc3b6ac54d65bf59be965f90ea657deea9bafa8?hp=8843f95926e1cb5b43a3915b761fa16d1b5635a0 kill unused type sg_mbox_t --- diff --git a/include/simgrid/forward.h b/include/simgrid/forward.h index 83d437ab77..df24a155dd 100644 --- a/include/simgrid/forward.h +++ b/include/simgrid/forward.h @@ -38,7 +38,6 @@ namespace simgrid { typedef simgrid::s4u::As simgrid_As; typedef simgrid::s4u::Host simgrid_Host; -typedef boost::intrusive_ptr sg_mbox_t; typedef simgrid::kernel::activity::ActivityImpl kernel_Activity; typedef simgrid::kernel::routing::NetCard routing_NetCard; typedef simgrid::surf::Cpu surf_Cpu; @@ -50,7 +49,6 @@ typedef simgrid::trace_mgr::trace tmgr_Trace; typedef struct simgrid_As simgrid_As; typedef struct simgrid_Host simgrid_Host; -typedef struct simgrid_Mailbox *sg_mbox_t; typedef struct kernel_Activity kernel_Activity; typedef struct surf_Cpu surf_Cpu; typedef struct routing_NetCard routing_NetCard; diff --git a/include/simgrid/s4u/mailbox.hpp b/include/simgrid/s4u/mailbox.hpp index e68b46dd6f..88206d6328 100644 --- a/include/simgrid/s4u/mailbox.hpp +++ b/include/simgrid/s4u/mailbox.hpp @@ -68,8 +68,4 @@ public: }} // namespace simgrid::s4u -XBT_PUBLIC(sg_mbox_t) sg_mbox_by_name(const char*name); -XBT_PUBLIC(int) sg_mbox_is_empty(sg_mbox_t mbox); -XBT_PUBLIC(void)sg_mbox_setReceiver(sg_mbox_t mbox, smx_process_t process); - #endif /* SIMGRID_S4U_MAILBOX_HPP */ diff --git a/src/s4u/s4u_mailbox.cpp b/src/s4u/s4u_mailbox.cpp index 6e5f18d3b6..57d94c7105 100644 --- a/src/s4u/s4u_mailbox.cpp +++ b/src/s4u/s4u_mailbox.cpp @@ -62,15 +62,3 @@ ActorPtr Mailbox::receiver() { } } - -/*------- C functions -------*/ - -sg_mbox_t sg_mbox_by_name(const char*name){ - return simgrid::s4u::Mailbox::byName(name).get(); -} -int sg_mbox_is_empty(sg_mbox_t mbox) { - return mbox->empty(); -} -void sg_mbox_setReceiver(sg_mbox_t mbox, smx_process_t process) { - mbox->setReceiver(&process->getIface()); -}