From 49d517896fd734749d7961614d134eff11fa1b00 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Tue, 2 Jul 2013 14:06:00 +0200
Subject: [PATCH] TimeStepping: kill clone()

---
 src/timestepping.cc | 16 ----------------
 src/timestepping.hh | 12 ------------
 2 files changed, 28 deletions(-)

diff --git a/src/timestepping.cc b/src/timestepping.cc
index 8d89ae76..bdadfefc 100644
--- a/src/timestepping.cc
+++ b/src/timestepping.cc
@@ -94,11 +94,6 @@ void ImplicitEuler<VectorType, MatrixType, FunctionType, dim>::extractVelocity(
   velocity = v;
 }
 
-template <class VectorType, class MatrixType, class FunctionType, int dim>
-TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> *
-ImplicitEuler<VectorType, MatrixType, FunctionType, dim>::clone() {
-  return new ImplicitEuler<VectorType, MatrixType, FunctionType, dim>(*this);
-}
 template <class VectorType, class MatrixType, class FunctionType, int dim>
 Newmark<VectorType, MatrixType, FunctionType, dim>::Newmark(
     MatrixType const &_A, MatrixType const &_B, VectorType const &_u_initial,
@@ -204,11 +199,6 @@ void Newmark<VectorType, MatrixType, FunctionType, dim>::extractVelocity(
   velocity = v;
 }
 
-template <class VectorType, class MatrixType, class FunctionType, int dim>
-TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> *
-Newmark<VectorType, MatrixType, FunctionType, dim>::clone() {
-  return new Newmark<VectorType, MatrixType, FunctionType, dim>(*this);
-}
 template <class VectorType, class MatrixType, class FunctionType, int dim>
 EulerPair<VectorType, MatrixType, FunctionType, dim>::EulerPair(
     MatrixType const &_A, MatrixType const &_B, VectorType const &_u_initial,
@@ -304,10 +294,4 @@ void EulerPair<VectorType, MatrixType, FunctionType, dim>::extractVelocity(
   velocity = v;
 }
 
-template <class VectorType, class MatrixType, class FunctionType, int dim>
-TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> *
-EulerPair<VectorType, MatrixType, FunctionType, dim>::clone() {
-  return new EulerPair<VectorType, MatrixType, FunctionType, dim>(*this);
-}
-
 #include "timestepping_tmpl.cc"
diff --git a/src/timestepping.hh b/src/timestepping.hh
index 55ed3450..efbcb416 100644
--- a/src/timestepping.hh
+++ b/src/timestepping.hh
@@ -14,9 +14,6 @@ class TimeSteppingScheme {
   void virtual postProcess(VectorType const &problem_iterate) = 0;
   void virtual extractDisplacement(VectorType &displacement) const = 0;
   void virtual extractVelocity(VectorType &velocity) const = 0;
-
-  TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> virtual *
-  clone() = 0;
 };
 
 template <class VectorType, class MatrixType, class FunctionType, int dim>
@@ -35,9 +32,6 @@ class ImplicitEuler
   void virtual extractDisplacement(VectorType &) const override;
   void virtual extractVelocity(VectorType &) const override;
 
-  TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> virtual *clone()
-      override;
-
 private:
   MatrixType const &A;
   VectorType u;
@@ -70,9 +64,6 @@ class Newmark
   void virtual extractDisplacement(VectorType &) const override;
   void virtual extractVelocity(VectorType &) const override;
 
-  TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> virtual *clone()
-      override;
-
 private:
   MatrixType const &A;
   MatrixType const &B;
@@ -107,9 +98,6 @@ class EulerPair
   void virtual extractDisplacement(VectorType &) const override;
   void virtual extractVelocity(VectorType &) const override;
 
-  TimeSteppingScheme<VectorType, MatrixType, FunctionType, dim> virtual *clone()
-      override;
-
 private:
   MatrixType const &A;
   MatrixType const &B;
-- 
GitLab