]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove redundant destructors 4902/head
authorDenis Davydov <davydden@gmail.com>
Sun, 20 Aug 2017 20:28:25 +0000 (22:28 +0200)
committerDenis Davydov <davydden@gmail.com>
Sun, 20 Aug 2017 20:28:25 +0000 (22:28 +0200)
include/deal.II/base/function.h
include/deal.II/base/function.templates.h

index 5b6fab9e41499be2a25d527d59f89254ebf6cc4c..2148794aa44534195d6fa317b8a7e15816ad2471 100644 (file)
@@ -386,11 +386,6 @@ namespace Functions
      */
     ConstantFunction (const Number *begin_ptr, const unsigned int n_components);
 
-    /**
-     * Virtual destructor; absolutely necessary in this case.
-     */
-    virtual ~ConstantFunction ();
-
     virtual Number value (const Point<dim>   &p,
                           const unsigned int  component = 0) const;
 
@@ -449,12 +444,6 @@ namespace Functions
      */
     ZeroFunction (const unsigned int n_components = 1);
 
-    /**
-     * Destructor.
-     *
-     */
-    virtual ~ZeroFunction ();
-
   };
 
 }
index cfac4bd9212fa94394fac6f7a9e660709214ce34..1faee2fcc88ee4475b587c86f37093ff91c27839 100644 (file)
@@ -306,11 +306,6 @@ namespace Functions
     ConstantFunction<dim, Number> (Number(), n_components)
   {}
 
-
-  template <int dim, typename Number>
-  ZeroFunction<dim, Number>::~ZeroFunction ()
-  {}
-
 }
 
 //---------------------------------------------------------------------------
@@ -361,13 +356,6 @@ namespace Functions
 
 
 
-  template <int dim, typename Number>
-  ConstantFunction<dim, Number>::~ConstantFunction ()
-  {
-    function_value_vector.clear();
-  }
-
-
   template <int dim, typename Number>
   Number ConstantFunction<dim, Number>::value (const Point<dim> &,
                                                const unsigned int component) const

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.