From db3a6bc3015422047695d59a65bcb005ee6bda79 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 13 Oct 2023 17:02:36 -0400
Subject: [PATCH] =?UTF-8?q?ModelTree::equationTypeDetermination():=20remov?=
 =?UTF-8?q?e=20=E2=80=9Cmfs=E2=80=9D=20as=20an=20input=20argument?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

It is already available as a class member.
---
 src/ModelTree.cc | 4 ++--
 src/ModelTree.hh | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index 675a6e43..dbc65069 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -511,7 +511,7 @@ ModelTree::computePrologueAndEpilogue()
 }
 
 void
-ModelTree::equationTypeDetermination(const map<tuple<int, int, int>, expr_t> &first_order_endo_derivatives, int mfs)
+ModelTree::equationTypeDetermination(const map<tuple<int, int, int>, expr_t> &first_order_endo_derivatives)
 {
   equation_type_and_normalized_equation.clear();
   equation_type_and_normalized_equation.resize(equations.size());
@@ -2018,7 +2018,7 @@ ModelTree::computingPassBlock(const eval_context_t &eval_context, bool no_tmp_te
     return;
   auto [prologue, epilogue] = computePrologueAndEpilogue();
   auto first_order_endo_derivatives = collectFirstOrderDerivativesEndogenous();
-  equationTypeDetermination(first_order_endo_derivatives, mfs);
+  equationTypeDetermination(first_order_endo_derivatives);
   cout << "Finding the optimal block decomposition of the " << modelClassName() << "..." << endl;
   computeBlockDecomposition(prologue, epilogue);
   reduceBlockDecomposition();
diff --git a/src/ModelTree.hh b/src/ModelTree.hh
index fe25df81..c4639860 100644
--- a/src/ModelTree.hh
+++ b/src/ModelTree.hh
@@ -478,7 +478,7 @@ private:
      Returns the sizes of the prologue and epilogue. */
   pair<int, int> computePrologueAndEpilogue();
   //! Determine the type of each equation of model and try to normalize the unnormalized equation
-  void equationTypeDetermination(const map<tuple<int, int, int>, expr_t> &first_order_endo_derivatives, int mfs);
+  void equationTypeDetermination(const map<tuple<int, int, int>, expr_t> &first_order_endo_derivatives);
   /* Fills the max lags/leads and n_{static,mixed,forward,backward} fields of a
      given block.
      Needs the fields size and first_equation. */
-- 
GitLab