From: Martin Quinson Date: Tue, 26 Jul 2016 13:13:48 +0000 (+0200) Subject: kill an unused function and make an internal field protected X-Git-Tag: v3_14~711 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1755089356224e9003a0a8dbfc1a2eca8b0f93e9 kill an unused function and make an internal field protected --- diff --git a/include/simgrid/s4u/actor.hpp b/include/simgrid/s4u/actor.hpp index 28dbdc4031..89a77276d6 100644 --- a/include/simgrid/s4u/actor.hpp +++ b/include/simgrid/s4u/actor.hpp @@ -248,6 +248,7 @@ public: /** Ask kindly to all actors to die. Only the issuer will survive. */ static void killAll(); +protected: /** Returns the internal implementation of this actor */ smx_process_t getImpl(); }; diff --git a/include/simgrid/s4u/mailbox.hpp b/include/simgrid/s4u/mailbox.hpp index 88f9b9856d..8ac3dbf057 100644 --- a/include/simgrid/s4u/mailbox.hpp +++ b/include/simgrid/s4u/mailbox.hpp @@ -71,6 +71,5 @@ using MailboxPtr = Mailbox::Ptr; 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); -XBT_PUBLIC(smx_process_t) sg_mbox_receiver(sg_mbox_t mbox); #endif /* SIMGRID_S4U_MAILBOX_HPP */ diff --git a/src/s4u/s4u_mailbox.cpp b/src/s4u/s4u_mailbox.cpp index fe40a3f334..e49465c6fa 100644 --- a/src/s4u/s4u_mailbox.cpp +++ b/src/s4u/s4u_mailbox.cpp @@ -62,6 +62,3 @@ int sg_mbox_is_empty(sg_mbox_t mbox) { void sg_mbox_setReceiver(sg_mbox_t mbox, smx_process_t process) { mbox->setReceiver(&process->actor()); } -smx_process_t sg_mbox_receiver(sg_mbox_t mbox) { - return mbox->receiver()->getImpl(); -}