From: Wolfgang Bangerth <bangerth@colostate.edu>
Date: Wed, 12 Jul 2017 16:17:14 +0000 (-0600)
Subject: Delete the constructor of MultithreadInfo.
X-Git-Tag: v9.0.0-rc1~1425^2~6
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d96a0e9c95d071238f4a19ee3168f1824951499;p=dealii.git

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.
---

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 ()
 {