From b6d4ef799768c9c184a616dc9b043c0201a86901 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Tue, 2 Jul 2013 14:06:53 +0200 Subject: [PATCH] State: kill clone() --- src/state/dieterichstateupdater.hh | 8 -------- src/state/ruinastateupdater.hh | 8 -------- src/state/stateupdater.hh | 2 -- 3 files changed, 18 deletions(-) diff --git a/src/state/dieterichstateupdater.hh b/src/state/dieterichstateupdater.hh index 5398a233..ee8480c4 100644 --- a/src/state/dieterichstateupdater.hh +++ b/src/state/dieterichstateupdater.hh @@ -16,8 +16,6 @@ class DieterichStateUpdater virtual void solve(VectorType const &velocity_field); virtual void extractState(SingletonVectorType &state); - virtual StateUpdater<SingletonVectorType, VectorType> *clone(); - private: SingletonVectorType alpha_old; SingletonVectorType alpha; @@ -59,10 +57,4 @@ void DieterichStateUpdater<SingletonVectorType, VectorType>::extractState( state = alpha; } -template <class SingletonVectorType, class VectorType> -StateUpdater<SingletonVectorType, VectorType> * -DieterichStateUpdater<SingletonVectorType, VectorType>::clone() { - return new DieterichStateUpdater<SingletonVectorType, VectorType>(*this); -} - #endif diff --git a/src/state/ruinastateupdater.hh b/src/state/ruinastateupdater.hh index 872856eb..083d97ee 100644 --- a/src/state/ruinastateupdater.hh +++ b/src/state/ruinastateupdater.hh @@ -15,8 +15,6 @@ class RuinaStateUpdater : public StateUpdater<SingletonVectorType, VectorType> { virtual void solve(VectorType const &velocity_field); virtual void extractState(SingletonVectorType &state); - virtual StateUpdater<SingletonVectorType, VectorType> *clone(); - private: SingletonVectorType alpha_old; SingletonVectorType alpha; @@ -57,10 +55,4 @@ void RuinaStateUpdater<SingletonVectorType, VectorType>::extractState( state = alpha; } -template <class SingletonVectorType, class VectorType> -StateUpdater<SingletonVectorType, VectorType> * -RuinaStateUpdater<SingletonVectorType, VectorType>::clone() { - return new RuinaStateUpdater<SingletonVectorType, VectorType>(*this); -} - #endif diff --git a/src/state/stateupdater.hh b/src/state/stateupdater.hh index 5ff9b865..8c5f412d 100644 --- a/src/state/stateupdater.hh +++ b/src/state/stateupdater.hh @@ -7,8 +7,6 @@ template <class SingletonVectorType, class VectorType> class StateUpdater { virtual void setup(double _tau) = 0; virtual void solve(VectorType const &velocity_field) = 0; virtual void extractState(SingletonVectorType &state) = 0; - - virtual StateUpdater<SingletonVectorType, VectorType> *clone() = 0; }; #endif -- GitLab