]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove an (unused) default constructor.
authorDavid Wells <wellsd2@rpi.edu>
Tue, 3 Jan 2017 17:07:47 +0000 (12:07 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Thu, 5 Jan 2017 03:08:30 +0000 (22:08 -0500)
This was caught by cppcheck. Since this class already has a non-default
constructor (and a reference member, so it is not default constructible
anyway) it does not have an implicitly defined default constructor, so
we can get rid of this.

include/deal.II/base/symmetric_tensor.h

index 8e82632dadb1bce93db3db358f55a64a6975bc82..ae55560d157479b3bc436f4ef7a4dd79b654908d 100644 (file)
@@ -311,11 +311,6 @@ namespace internal
       Accessor (tensor_type              &tensor,
                 const TableIndices<rank> &previous_indices);
 
-      /**
-       * Default constructor. Not needed, and invisible, so private.
-       */
-      Accessor ();
-
       /**
        * Copy constructor. Not needed, and invisible, so private.
        */
@@ -842,17 +837,6 @@ namespace internal
 {
   namespace SymmetricTensorAccessors
   {
-    template <int rank, int dim, bool constness, int P, typename Number>
-    Accessor<rank,dim,constness,P,Number>::
-    Accessor ()
-      :
-      tensor (*static_cast<tensor_type *>(0)),
-      previous_indices ()
-    {
-      Assert (false, ExcMessage ("You can't call the default constructor of this class."));
-    }
-
-
     template <int rank, int dim, bool constness, int P, typename Number>
     Accessor<rank,dim,constness,P,Number>::
     Accessor (tensor_type              &tensor,
@@ -883,18 +867,6 @@ namespace internal
 
 
 
-    template <int rank, int dim, bool constness, typename Number>
-    Accessor<rank,dim,constness,1,Number>::
-    Accessor ()
-      :
-      tensor (*static_cast<tensor_type *>(0)),
-      previous_indices ()
-    {
-      Assert (false, ExcMessage ("You can't call the default constructor of this class."));
-    }
-
-
-
     template <int rank, int dim, bool constness, typename Number>
     Accessor<rank,dim,constness,1,Number>::
     Accessor (tensor_type              &tensor,
@@ -922,8 +894,6 @@ namespace internal
     {
       return tensor(merge (previous_indices, i, rank-1));
     }
-
-
   }
 }
 

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.