Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill a useless obscure function
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 6 Jan 2016 20:51:46 +0000 (21:51 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 6 Jan 2016 20:51:46 +0000 (21:51 +0100)
include/simgrid/msg.h
src/msg/msg_host.cpp
src/msg/msg_private.h
src/msg/msg_vm.cpp

index b5ee53a..b2d9661 100644 (file)
@@ -308,8 +308,6 @@ XBT_PUBLIC(int) MSG_host_is_off(msg_host_t h);
 XBT_PUBLIC(double) MSG_host_get_wattmin_at(msg_host_t host, int pstate);
 XBT_PUBLIC(double) MSG_host_get_wattmax_at(msg_host_t host, int pstate);
 
 XBT_PUBLIC(double) MSG_host_get_wattmin_at(msg_host_t host, int pstate);
 XBT_PUBLIC(double) MSG_host_get_wattmax_at(msg_host_t host, int pstate);
 
-XBT_PUBLIC(void) __MSG_host_destroy(msg_host_t host);
-
 XBT_PUBLIC(double) MSG_host_get_power_peak_at(msg_host_t h, int pstate);
 XBT_PUBLIC(double) MSG_host_get_current_power_peak(msg_host_t h);
 XBT_PUBLIC(int)    MSG_host_get_nb_pstates(msg_host_t h);
 XBT_PUBLIC(double) MSG_host_get_power_peak_at(msg_host_t h, int pstate);
 XBT_PUBLIC(double) MSG_host_get_current_power_peak(msg_host_t h);
 XBT_PUBLIC(int)    MSG_host_get_nb_pstates(msg_host_t h);
index 4182933..ee9ac40 100644 (file)
@@ -163,18 +163,6 @@ void __MSG_host_priv_free(msg_host_priv_t priv)
   free(priv);
 }
 
   free(priv);
 }
 
-/*
- * \brief Destroys a host (internal call only)
- */
-void __MSG_host_destroy(msg_host_t host) //FIXME: killme?
-{
-  /* TODO:
-   * What happens if VMs still remain on this host?
-   * Revisit here after the surf layer gets stable.
-   **/
-  sg_host_msg_destroy(host);
-}
-
 /** \ingroup m_host_management
  * \brief Return the current number MSG hosts.
  */
 /** \ingroup m_host_management
  * \brief Return the current number MSG hosts.
  */
index 43c65b3..c6df5a7 100644 (file)
@@ -160,7 +160,6 @@ XBT_PUBLIC_DATA(MSG_Global_t) msg_global;
 
 XBT_PRIVATE msg_host_t __MSG_host_create(sg_host_t host);
 XBT_PRIVATE msg_storage_t __MSG_storage_create(smx_storage_t storage);
 
 XBT_PRIVATE msg_host_t __MSG_host_create(sg_host_t host);
 XBT_PRIVATE msg_storage_t __MSG_storage_create(smx_storage_t storage);
-void __MSG_host_destroy(msg_host_t host);
 XBT_PRIVATE void __MSG_host_priv_free(msg_host_priv_t priv);
 XBT_PRIVATE void __MSG_storage_destroy(msg_storage_priv_t host);
 XBT_PRIVATE void __MSG_file_destroy(msg_file_priv_t host);
 XBT_PRIVATE void __MSG_host_priv_free(msg_host_priv_t priv);
 XBT_PRIVATE void __MSG_storage_destroy(msg_storage_priv_t host);
 XBT_PRIVATE void __MSG_file_destroy(msg_file_priv_t host);
index 34abb09..905f3a9 100644 (file)
@@ -251,8 +251,6 @@ void MSG_vm_destroy(msg_vm_t vm)
   /* Then, destroy the VM object */
   simcall_vm_destroy(vm);
 
   /* Then, destroy the VM object */
   simcall_vm_destroy(vm);
 
-  __MSG_host_destroy(vm);
-
   TRACE_msg_vm_end(vm);
 }
 
   TRACE_msg_vm_end(vm);
 }