Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove unused static functions.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 30 Jan 2019 09:14:20 +0000 (10:14 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 31 Jan 2019 08:48:21 +0000 (09:48 +0100)
src/plugins/host_load.cpp
src/simix/smx_global.cpp

index 2a50f28..0769bd2 100644 (file)
@@ -176,21 +176,6 @@ static void on_host_change(simgrid::s4u::Host& host)
   host.extension<HostLoad>()->update();
 }
 
-/* This callback is called when an action (computation, idle, ...) terminates */
-static void on_action_state_change(simgrid::surf::CpuAction* action, simgrid::kernel::resource::Action::State /*previous*/)
-{
-  for (simgrid::surf::Cpu* const& cpu : action->cpus()) {
-    simgrid::s4u::Host* host = cpu->get_host();
-
-    if (dynamic_cast<simgrid::s4u::VirtualMachine*>(host)) // Ignore virtual machines
-      return;
-
-    if (host != nullptr) {
-      host->extension<HostLoad>()->update();
-    }
-  }
-}
-
 /* **************************** Public interface *************************** */
 
 /** @brief Initializes the HostLoad plugin
index b777616..06d2970 100644 (file)
@@ -144,12 +144,6 @@ double SIMIX_timer_next()
   return simix_timers.empty() ? -1.0 : simix_timers.top().first;
 }
 
-static void kill_process(smx_actor_t process)
-{
-  SIMIX_process_kill(process, nullptr);
-}
-
-
 namespace simgrid {
 namespace simix {