From 09a6b890a4e7f2319ee03d69119d36781c52fd57 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 6 Jan 2016 21:51:46 +0100 Subject: [PATCH] kill a useless obscure function --- include/simgrid/msg.h | 2 -- src/msg/msg_host.cpp | 12 ------------ src/msg/msg_private.h | 1 - src/msg/msg_vm.cpp | 2 -- 4 files changed, 17 deletions(-) diff --git a/include/simgrid/msg.h b/include/simgrid/msg.h index b5ee53a04e..b2d96615fd 100644 --- a/include/simgrid/msg.h +++ b/include/simgrid/msg.h @@ -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(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); diff --git a/src/msg/msg_host.cpp b/src/msg/msg_host.cpp index 41829339f5..ee9ac40e64 100644 --- a/src/msg/msg_host.cpp +++ b/src/msg/msg_host.cpp @@ -163,18 +163,6 @@ void __MSG_host_priv_free(msg_host_priv_t 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. */ diff --git a/src/msg/msg_private.h b/src/msg/msg_private.h index 43c65b39db..c6df5a7551 100644 --- a/src/msg/msg_private.h +++ b/src/msg/msg_private.h @@ -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); -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); diff --git a/src/msg/msg_vm.cpp b/src/msg/msg_vm.cpp index 34abb09079..905f3a94f0 100644 --- a/src/msg/msg_vm.cpp +++ b/src/msg/msg_vm.cpp @@ -251,8 +251,6 @@ void MSG_vm_destroy(msg_vm_t vm) /* Then, destroy the VM object */ simcall_vm_destroy(vm); - __MSG_host_destroy(vm); - TRACE_msg_vm_end(vm); } -- 2.20.1