Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[DVFS] Remove class HostDvfs as it serves no purpose
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 13 Jul 2018 12:03:15 +0000 (14:03 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Sat, 14 Jul 2018 20:47:19 +0000 (22:47 +0200)
src/plugins/host_dvfs.cpp

index 5e8886d..1b5cb72 100644 (file)
@@ -206,22 +206,10 @@ public:
  *  these values globally. Using them within the \<host\> will overwrite this
  *  global configuration
  */
-class HostDvfs {
-public:
-  static simgrid::xbt::Extension<simgrid::s4u::Host, HostDvfs> EXTENSION_ID;
-
-  explicit HostDvfs(simgrid::s4u::Host*){};
-  ~HostDvfs() = default;
-};
-
-simgrid::xbt::Extension<simgrid::s4u::Host, HostDvfs> 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<HostDvfs>();
-
   sg_host_load_plugin_init();
 
   simgrid::s4u::Host::on_creation.connect(&on_host_added);