]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove empty virtual destructors 9970/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 27 Apr 2020 19:08:04 +0000 (15:08 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 27 Apr 2020 19:09:16 +0000 (15:09 -0400)
reported by clang-tidy.

part of #9933

include/deal.II/lac/eigen.h
include/deal.II/lac/solver_fire.h
include/deal.II/lac/solver_relaxation.h

index 98aad3d9392af13f29dc319032176c10c9905bcc..dbce5b09fbb049c75de3aa79a668e2a05575106d 100644 (file)
@@ -85,10 +85,6 @@ public:
              VectorMemory<VectorType> &mem,
              const AdditionalData &    data = AdditionalData());
 
-  /**
-   * Virtual destructor.
-   */
-  virtual ~EigenPower();
 
   /**
    * Power method. @p x is the (not necessarily normalized, but nonzero) start
@@ -176,12 +172,6 @@ public:
                VectorMemory<VectorType> &mem,
                const AdditionalData &    data = AdditionalData());
 
-
-  /**
-   * Virtual destructor.
-   */
-  virtual ~EigenInverse();
-
   /**
    * Inverse method. @p value is the start guess for the eigenvalue and @p x
    * is the (not necessarily normalized, but nonzero) start vector for the
@@ -214,12 +204,6 @@ EigenPower<VectorType>::EigenPower(SolverControl &           cn,
 
 
 
-template <class VectorType>
-EigenPower<VectorType>::~EigenPower()
-{}
-
-
-
 template <class VectorType>
 template <typename MatrixType>
 void
@@ -303,12 +287,6 @@ EigenInverse<VectorType>::EigenInverse(SolverControl &           cn,
 
 
 
-template <class VectorType>
-EigenInverse<VectorType>::~EigenInverse()
-{}
-
-
-
 template <class VectorType>
 template <typename MatrixType>
 void
index ed81ce5826a2e1b1fb4cb69adfd5f76a049d21b6..0ef873e6c6d0b37f111d1ddb0bb3479df5c44195 100644 (file)
@@ -135,11 +135,6 @@ public:
   SolverFIRE(SolverControl &       solver_control,
              const AdditionalData &data = AdditionalData());
 
-  /**
-   * Virtual destructor.
-   */
-  virtual ~SolverFIRE();
-
   /**
    * Obtain a set of variables @p x that minimize an objective function
    * described by the polymorphic function wrapper @p compute, with a given
@@ -229,12 +224,6 @@ SolverFIRE<VectorType>::SolverFIRE(SolverControl &       solver_control,
 
 
 
-template <typename VectorType>
-SolverFIRE<VectorType>::~SolverFIRE()
-{}
-
-
-
 template <typename VectorType>
 template <typename PreconditionerType>
 void
index 0c26ae5d7c39cea5d2a475705988a1092ef88a38..34e497774f4369ac68773cf07f7b6734c913b858 100644 (file)
@@ -72,11 +72,6 @@ public:
   SolverRelaxation(SolverControl &       cn,
                    const AdditionalData &data = AdditionalData());
 
-  /**
-   * Virtual destructor.
-   */
-  virtual ~SolverRelaxation();
-
   /**
    * Solve the system $Ax = b$ using the relaxation method $x_{k+1} =
    * R(x_k,b)$. The matrix <i>A</i> itself is only used to compute the
@@ -100,11 +95,6 @@ SolverRelaxation<VectorType>::SolverRelaxation(SolverControl &cn,
 
 
 
-template <class VectorType>
-SolverRelaxation<VectorType>::~SolverRelaxation()
-{}
-
-
 template <class VectorType>
 template <typename MatrixType, class RelaxationType>
 void

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.