Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
un-deprecate a redundent function
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 9 Oct 2019 15:45:07 +0000 (17:45 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 9 Oct 2019 15:45:58 +0000 (17:45 +0200)
I don't see why we should not help our users. Having 2 functions doing
close (but different) things is not such a bad thing.

include/simgrid/plugins/energy.h
src/plugins/host_energy.cpp

index 035103c..3bf3429 100644 (file)
@@ -14,8 +14,7 @@ SG_BEGIN_DECL()
 XBT_PUBLIC void sg_host_energy_plugin_init();
 XBT_PUBLIC void sg_host_energy_update_all();
 XBT_PUBLIC double sg_host_get_consumed_energy(sg_host_t host);
-XBT_ATTRIB_DEPRECATED_v327("Please use !sg_host_get_idle_consumption_at()") \
-  XBT_PUBLIC double sg_host_get_idle_consumption(sg_host_t host); /* deprecated */
+XBT_PUBLIC double sg_host_get_idle_consumption(sg_host_t host);
 XBT_PUBLIC double sg_host_get_idle_consumption_at(sg_host_t host, int pstate);
 XBT_PUBLIC double sg_host_get_wattmin_at(sg_host_t host, int pstate);
 XBT_PUBLIC double sg_host_get_wattmax_at(sg_host_t host, int pstate);
index 400fb85..de49619 100644 (file)
@@ -596,7 +596,6 @@ double sg_host_get_consumed_energy(sg_host_t host)
 
 /** @ingroup plugin_host_energy
  *  @brief Get the amount of watt dissipated when the host is idling
- *  This function is deprecated and will not work after v3.27. Use sg_host_get_idle_consumption_at instead.
  */
 double sg_host_get_idle_consumption(sg_host_t host)
 {