From: Christian Heinrich Date: Fri, 13 Jul 2018 12:03:15 +0000 (+0200) Subject: [DVFS] Remove class HostDvfs as it serves no purpose X-Git-Tag: v3_21~434 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f76efa9c9428402f84642cf4a95021a7615d1bfa?hp=f97bad3c82af23c0f37296e56d5379377d1088e2 [DVFS] Remove class HostDvfs as it serves no purpose --- diff --git a/src/plugins/host_dvfs.cpp b/src/plugins/host_dvfs.cpp index 5e8886d1ca..1b5cb72c70 100644 --- a/src/plugins/host_dvfs.cpp +++ b/src/plugins/host_dvfs.cpp @@ -206,22 +206,10 @@ public: * these values globally. Using them within the \ will overwrite this * global configuration */ -class HostDvfs { -public: - static simgrid::xbt::Extension EXTENSION_ID; - - explicit HostDvfs(simgrid::s4u::Host*){}; - ~HostDvfs() = default; -}; - -simgrid::xbt::Extension HostDvfs::EXTENSION_ID; - } // namespace dvfs } // namespace plugin } // namespace simgrid -using simgrid::plugin::dvfs::HostDvfs; - /* **************************** events callback *************************** */ static void on_host_added(simgrid::s4u::Host& host) { @@ -296,11 +284,6 @@ static void on_host_added(simgrid::s4u::Host& host) */ void sg_host_dvfs_plugin_init() { - if (HostDvfs::EXTENSION_ID.valid()) - return; - - HostDvfs::EXTENSION_ID = simgrid::s4u::Host::extension_create(); - sg_host_load_plugin_init(); simgrid::s4u::Host::on_creation.connect(&on_host_added);