From 1e419a48e4d95af1d30243badfc5668f2852d1de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Tue, 10 Nov 2020 18:02:06 +0100 Subject: [PATCH] Remove unused function --- src/DynamicModel.cc | 8 -------- src/DynamicModel.hh | 4 ---- 2 files changed, 12 deletions(-) diff --git a/src/DynamicModel.cc b/src/DynamicModel.cc index c07754b0..ab730efc 100644 --- a/src/DynamicModel.cc +++ b/src/DynamicModel.cc @@ -4843,14 +4843,6 @@ DynamicModel::computeRamseyPolicyFOCs(const StaticModel &static_model) addEquation(neweqs[i], neweqs_lineno[i], neweqs_tags[i]); } -void -DynamicModel::toNonlinearPart(DynamicModel &non_linear_equations_dynamic_model) const -{ - // Convert model local variables (need to be done first) - for (const auto &it : local_variables_table) - non_linear_equations_dynamic_model.AddLocalVariable(it.first, it.second); -} - bool DynamicModel::ParamUsedWithLeadLag() const { diff --git a/src/DynamicModel.hh b/src/DynamicModel.hh index 58a2f9b1..d020b879 100644 --- a/src/DynamicModel.hh +++ b/src/DynamicModel.hh @@ -393,10 +393,6 @@ public: /*! Used by the perfect_foresight_problem MEX */ void writeDynamicJacobianNonZeroElts(const string &basename) const; - //! Converts to nonlinear model (only the equations) - /*! It assumes that the nonlinear model given in argument has just been allocated */ - void toNonlinearPart(DynamicModel &non_linear_equations_dynamic_model) const; - //! Creates mapping for variables and equations they are present in void createVariableMapping(int orig_eq_nbr);