From: Denis Davydov Date: Sun, 20 Aug 2017 20:28:25 +0000 (+0200) Subject: remove redundant destructors X-Git-Tag: v9.0.0-rc1~1198^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4902%2Fhead;p=dealii.git remove redundant destructors --- diff --git a/include/deal.II/base/function.h b/include/deal.II/base/function.h index 5b6fab9e41..2148794aa4 100644 --- a/include/deal.II/base/function.h +++ b/include/deal.II/base/function.h @@ -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 &p, const unsigned int component = 0) const; @@ -449,12 +444,6 @@ namespace Functions */ ZeroFunction (const unsigned int n_components = 1); - /** - * Destructor. - * - */ - virtual ~ZeroFunction (); - }; } diff --git a/include/deal.II/base/function.templates.h b/include/deal.II/base/function.templates.h index cfac4bd921..1faee2fcc8 100644 --- a/include/deal.II/base/function.templates.h +++ b/include/deal.II/base/function.templates.h @@ -306,11 +306,6 @@ namespace Functions ConstantFunction (Number(), n_components) {} - - template - ZeroFunction::~ZeroFunction () - {} - } //--------------------------------------------------------------------------- @@ -361,13 +356,6 @@ namespace Functions - template - ConstantFunction::~ConstantFunction () - { - function_value_vector.clear(); - } - - template Number ConstantFunction::value (const Point &, const unsigned int component) const