]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Delete the constructor of MultithreadInfo.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 12 Jul 2017 16:17:14 +0000 (10:17 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 12 Jul 2017 16:58:15 +0000 (10:58 -0600)
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
source/base/multithread_info.cc

index b957a1820370cd317bb0caa373a62d2fb9bd3337..3e4a420644e08407d37b288c06234f9d2dc39987 100644 (file)
@@ -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
index 32d27baed2b2eee2c5c51aa84c2a3c9f86e4febd..330e22ab7ea01ddac66292476fad3abb1be1254f 100644 (file)
@@ -189,11 +189,6 @@ bool MultithreadInfo::is_running_single_threaded()
 }
 
 
-MultithreadInfo::MultithreadInfo ()
-{}
-
-
-
 std::size_t
 MultithreadInfo::memory_consumption ()
 {

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.