From f76efa9c9428402f84642cf4a95021a7615d1bfa Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Fri, 13 Jul 2018 14:03:15 +0200 Subject: [PATCH 1/1] [DVFS] Remove class HostDvfs as it serves no purpose --- src/plugins/host_dvfs.cpp | 17 ----------------- 1 file changed, 17 deletions(-) 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); -- 2.20.1