From aabd4d8d6024a737c3e0de1d262c887e73e1b433 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 22 May 2021 10:39:49 -0500 Subject: [PATCH] remove dead code from source --- source/base/multithread_info.cc | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/source/base/multithread_info.cc b/source/base/multithread_info.cc index 9947d40197..86dece9bbb 100644 --- a/source/base/multithread_info.cc +++ b/source/base/multithread_info.cc @@ -25,12 +25,6 @@ #endif -#ifdef DEAL_II_WITH_TASKFLOW -DEAL_II_DISABLE_EXTRA_DIAGNOSTICS -# include -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(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 MultithreadInfo::executor = nullptr; -#endif - unsigned int MultithreadInfo::n_max_threads = numbers::invalid_unsigned_int; namespace -- 2.39.5