From: Martin Quinson Date: Thu, 13 Jul 2017 21:45:21 +0000 (+0200) Subject: properly deprecate another function X-Git-Tag: v3_17~396 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e13e0d462af5ecc88eca25ad055771ec47bf59dc properly deprecate another function --- diff --git a/include/simgrid/msg.h b/include/simgrid/msg.h index d143c3f61c..dc6a31551f 100644 --- a/include/simgrid/msg.h +++ b/include/simgrid/msg.h @@ -266,6 +266,13 @@ XBT_PUBLIC(void) MSG_host_get_process_list(msg_host_t h, xbt_dynar_t whereto); XBT_PUBLIC(int) MSG_host_is_on(msg_host_t h); XBT_PUBLIC(int) MSG_host_is_off(msg_host_t h); +static inline double + XBT_ATTRIB_DEPRECATED_v319("Use MSG_host_get_speed(): v3.19 will drop MSG_get_host_speed() completely.") + MSG_get_host_speed(msg_host_t host) +{ + return MSG_host_get_speed(host); +} + XBT_PUBLIC(double) MSG_get_host_speed(msg_host_t h); /* deprecated */ XBT_PUBLIC(double) MSG_host_get_power_peak_at(msg_host_t h, int pstate); diff --git a/src/msg/msg_host.cpp b/src/msg/msg_host.cpp index 285d76a06e..f9d07626a9 100644 --- a/src/msg/msg_host.cpp +++ b/src/msg/msg_host.cpp @@ -118,15 +118,6 @@ double MSG_host_get_speed(msg_host_t host) { return host->getSpeed(); } -/** \ingroup m_host_management - * \brief Return the speed of the processor (in flop/s), regardless of the current load on the machine. - * Deprecated: use MSG_host_get_speed - */ -double MSG_get_host_speed(msg_host_t host) { - XBT_WARN("MSG_get_host_speed is deprecated: use MSG_host_get_speed"); - return MSG_host_get_speed(host); -} - /** \ingroup m_host_management * \brief Return the number of cores. *