diff --git a/src/DynamicModel.cc b/src/DynamicModel.cc
index c07754b0a21d9a73645a9f824b4582bbfd555e22..ab730efcd8e7a61ffaf8420be62ad8263e854cc5 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 58a2f9b182f7eeb7ee8d50b83a9e8d87969f37ed..d020b879df2cc6430ae632b2143da2efb72608ff 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);