From 33acaae55381848d54513f94e64034f24eec1c0c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Mon, 18 Mar 2024 15:44:44 +0100
Subject: [PATCH] Bytecode: remove unused functions

---
 mex/sources/bytecode/Interpreter.cc | 21 ---------------------
 mex/sources/bytecode/Interpreter.hh |  2 --
 2 files changed, 23 deletions(-)

diff --git a/mex/sources/bytecode/Interpreter.cc b/mex/sources/bytecode/Interpreter.cc
index 068ca0ebdb..b6357f2197 100644
--- a/mex/sources/bytecode/Interpreter.cc
+++ b/mex/sources/bytecode/Interpreter.cc
@@ -1468,27 +1468,6 @@ Interpreter::Init_UMFPACK_Sparse_One_Boundary(const mxArray* x0_m) const
   return {zero_solution, Ap, Ai, Ax, b};
 }
 
-int
-Interpreter::find_exo_num(const vector<s_plan>& sconstrained_extended_path, int value)
-{
-  auto it = find_if(sconstrained_extended_path.begin(), sconstrained_extended_path.end(),
-                    [=](auto v) { return v.exo_num == value; });
-  if (it != sconstrained_extended_path.end())
-    return it - sconstrained_extended_path.begin();
-  else
-    return -1;
-}
-
-int
-Interpreter::find_int_date(const vector<pair<int, double>>& per_value, int value)
-{
-  auto it = find_if(per_value.begin(), per_value.end(), [=](auto v) { return v.first == value; });
-  if (it != per_value.end())
-    return it - per_value.begin();
-  else
-    return -1;
-}
-
 tuple<SuiteSparse_long*, SuiteSparse_long*, double*, double*>
 Interpreter::Init_UMFPACK_Sparse_Two_Boundaries(
     const mxArray* x0_m,
diff --git a/mex/sources/bytecode/Interpreter.hh b/mex/sources/bytecode/Interpreter.hh
index 4a2723c782..fa2f32485d 100644
--- a/mex/sources/bytecode/Interpreter.hh
+++ b/mex/sources/bytecode/Interpreter.hh
@@ -178,8 +178,6 @@ private:
   void Read_SparseMatrix(const string& file_name, bool two_boundaries);
   void Singular_display();
   void End_Solver();
-  static int find_exo_num(const vector<s_plan>& sconstrained_extended_path, int value);
-  static int find_int_date(const vector<pair<int, double>>& per_value, int value);
   void Init_Gaussian_Elimination();
   void Init_Matlab_Sparse_Two_Boundaries(const mxArray* A_m, const mxArray* b_m,
                                          const mxArray* x0_m) const;
-- 
GitLab