]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-8: remove destructor.
authorDavid Wells <drwells@email.unc.edu>
Thu, 16 Apr 2020 20:43:11 +0000 (16:43 -0400)
committerDavid Wells <drwells@email.unc.edu>
Fri, 17 Apr 2020 15:27:12 +0000 (11:27 -0400)
step-6 no longer has a destructor anyway (see aae3ab83d2).

examples/step-8/step-8.cc

index 122ece1bec22219cecc3c4676f100ae4eccef01e..f3349006423fdd7d9475c09829029cb517662ed9 100644 (file)
@@ -82,7 +82,6 @@ namespace Step8
   {
   public:
     ElasticProblem();
-    ~ElasticProblem();
     void run();
 
   private:
@@ -202,17 +201,6 @@ namespace Step8
   // these possibilities in later examples.
 
 
-
-  // @sect4{ElasticProblem::~ElasticProblem destructor}
-
-  // The destructor, on the other hand, is exactly as in step-6:
-  template <int dim>
-  ElasticProblem<dim>::~ElasticProblem()
-  {
-    dof_handler.clear();
-  }
-
-
   // @sect4{ElasticProblem::setup_system}
 
   // Setting up the system of equations is identical to the function used in

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.