Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill dead code.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 21 Oct 2017 20:42:41 +0000 (22:42 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 21 Oct 2017 20:42:41 +0000 (22:42 +0200)
src/kernel/context/ContextRaw.cpp

index 5695d19..9351c54 100644 (file)
@@ -58,7 +58,6 @@ public:
     void_pfn_smxprocess_t cleanup, smx_actor_t process) override;
   void run_all() override;
 private:
-  void run_all_adaptative();
   void run_all_serial();
   void run_all_parallel();
 };
@@ -448,20 +447,4 @@ void RawContext::resume_parallel()
 #endif
 }
 
-/** @brief Resumes all processes ready to run. */
-void RawContextFactory::run_all_adaptative()
-{
-  unsigned long nb_processes = simix_global->process_to_run.size();
-  if (SIMIX_context_is_parallel() &&
-      static_cast<unsigned long>(SIMIX_context_get_parallel_threshold()) < nb_processes) {
-    raw_context_parallel = true;
-    XBT_DEBUG("Runall // %lu", nb_processes);
-    this->run_all_parallel();
-  } else {
-    XBT_DEBUG("Runall serial %lu", nb_processes);
-    raw_context_parallel = false;
-    this->run_all_serial();
-  }
-}
-
 }}}