From 1d96a0e9c95d071238f4a19ee3168f1824951499 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 12 Jul 2017 10:17:14 -0600 Subject: [PATCH] Delete the constructor of MultithreadInfo. It is not necessary because all members are static. In fact, the class should probably be converted to a namespace. --- include/deal.II/base/multithread_info.h | 13 ++++++------- source/base/multithread_info.cc | 5 ----- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/include/deal.II/base/multithread_info.h b/include/deal.II/base/multithread_info.h index b957a18203..3e4a420644 100644 --- a/include/deal.II/base/multithread_info.h +++ b/include/deal.II/base/multithread_info.h @@ -47,6 +47,12 @@ DEAL_II_NAMESPACE_OPEN class MultithreadInfo { public: + /** + * Constructor. This constructor is deleted because no instance of + * this class needs to be constructed (all members are static). + */ + MultithreadInfo () = delete; + /** * The number of CPUs in the system. At the moment detection of CPUs is only * implemented on Linux, FreeBSD, and Mac computers. It is one if detection @@ -97,13 +103,6 @@ public: private: - - /** - * Constructor made private because no instance of this class needs to be - * constructed as all members are static. - */ - MultithreadInfo (); - /** * Private function to determine the number of CPUs. Implementation for * Linux, OSF, SGI, and Sun machines; if no detection of the number of CPUs diff --git a/source/base/multithread_info.cc b/source/base/multithread_info.cc index 32d27baed2..330e22ab7e 100644 --- a/source/base/multithread_info.cc +++ b/source/base/multithread_info.cc @@ -189,11 +189,6 @@ bool MultithreadInfo::is_running_single_threaded() } -MultithreadInfo::MultithreadInfo () -{} - - - std::size_t MultithreadInfo::memory_consumption () { -- 2.39.5