]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove dead code from source 12286/head
authorMatthias Maier <tamiko@43-1.org>
Sat, 22 May 2021 15:39:49 +0000 (10:39 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sat, 22 May 2021 15:39:49 +0000 (10:39 -0500)
source/base/multithread_info.cc

index 9947d40197ec984bc8adb8683dd0c7685ac1786a..86dece9bbb503699a0b17166d4f65f4c2490a573 100644 (file)
 #endif
 
 
-#ifdef DEAL_II_WITH_TASKFLOW
-DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
-#  include <taskflow/taskflow.hpp>
-DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
-#endif
-
 DEAL_II_NAMESPACE_OPEN
 
 
@@ -98,10 +92,6 @@ MultithreadInfo::set_thread_limit(const unsigned int max_threads)
     dummy.terminate();
   dummy.initialize(n_max_threads);
 #endif
-
-#ifdef DEAL_II_WITH_TASKFLOW
-  executor = std::make_unique<tf::Executor>(n_max_threads);
-#endif
 }
 
 
@@ -143,23 +133,6 @@ MultithreadInfo::initialize_multithreading()
   done = true;
 }
 
-#ifdef DEAL_II_WITH_TASKFLOW
-tf::Executor &
-MultithreadInfo::get_taskflow_executor()
-{
-  // This should not trigger in normal user code, because we initialize the
-  // Executor in the static DoOnce struct at the end of this file unless you
-  // ask for the Executor before this static object gets constructed.
-  Assert(
-    executor.get() != nullptr,
-    ExcMessage(
-      "Please initialize multithreading using MultithreadInfo::set_thread_limit() first."));
-  return *(executor.get());
-}
-
-std::unique_ptr<tf::Executor> MultithreadInfo::executor = nullptr;
-#endif
-
 unsigned int MultithreadInfo::n_max_threads = numbers::invalid_unsigned_int;
 
 namespace

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.