From e0c9a287c55db586fbee49112fc6b0e8c8147bab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 24 Jun 2022 15:28:42 +0200
Subject: [PATCH] Remove unused StaticModel::copyHelper()

---
 src/StaticModel.cc | 8 --------
 src/StaticModel.hh | 5 -----
 2 files changed, 13 deletions(-)

diff --git a/src/StaticModel.cc b/src/StaticModel.cc
index 13a4107e..1ae065ef 100644
--- a/src/StaticModel.cc
+++ b/src/StaticModel.cc
@@ -27,11 +27,6 @@
 #include "StaticModel.hh"
 #include "DynamicModel.hh"
 
-void
-StaticModel::copyHelper(const StaticModel &m)
-{
-}
-
 StaticModel::StaticModel(SymbolTable &symbol_table_arg,
                          NumericalConstants &num_constants_arg,
                          ExternalFunctionsTable &external_functions_table_arg) :
@@ -42,7 +37,6 @@ StaticModel::StaticModel(SymbolTable &symbol_table_arg,
 StaticModel::StaticModel(const StaticModel &m) :
   ModelTree{m}
 {
-  copyHelper(m);
 }
 
 StaticModel &
@@ -50,8 +44,6 @@ StaticModel::operator=(const StaticModel &m)
 {
   ModelTree::operator=(m);
 
-  copyHelper(m);
-
   return *this;
 }
 
diff --git a/src/StaticModel.hh b/src/StaticModel.hh
index 6966c6f2..33c64dbe 100644
--- a/src/StaticModel.hh
+++ b/src/StaticModel.hh
@@ -109,11 +109,6 @@ private:
   void writeStaticModel(ostream &DynamicOutput, bool use_dll, bool julia) const;
   void writeStaticModel(const string &dynamic_basename, bool use_dll, bool julia) const;
 
-  //! Internal helper for the copy constructor and assignment operator
-  /*! Copies all the structures that contain ExprNode*, by the converting the
-      pointers into their equivalent in the new tree */
-  void copyHelper(const StaticModel &m);
-
 public:
   StaticModel(SymbolTable &symbol_table_arg,
               NumericalConstants &num_constants,
-- 
GitLab