From 75a26b6d111fcf24df7c9aea842f82a62321c347 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Thu, 6 Jan 2022 14:47:22 +0100
Subject: [PATCH] Remove unused member in the RamseyPolicyStatement class

---
 src/ComputingTasks.cc | 6 ++----
 src/ComputingTasks.hh | 6 ++----
 src/ParsingDriver.cc  | 5 ++---
 3 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/src/ComputingTasks.cc b/src/ComputingTasks.cc
index 60a82981..b13c815d 100644
--- a/src/ComputingTasks.cc
+++ b/src/ComputingTasks.cc
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2003-2021 Dynare Team
+ * Copyright © 2003-2022 Dynare Team
  *
  * This file is part of Dynare.
  *
@@ -619,10 +619,8 @@ RamseyConstraintsStatement::writeJsonOutput(ostream &output) const
   output << "}";
 }
 
-RamseyPolicyStatement::RamseyPolicyStatement(const SymbolTable &symbol_table_arg,
-                                             SymbolList symbol_list_arg,
+RamseyPolicyStatement::RamseyPolicyStatement(SymbolList symbol_list_arg,
                                              OptionsList options_list_arg) :
-  symbol_table{symbol_table_arg},
   symbol_list{move(symbol_list_arg)},
   options_list{move(options_list_arg)}
 {
diff --git a/src/ComputingTasks.hh b/src/ComputingTasks.hh
index facaab90..0f789182 100644
--- a/src/ComputingTasks.hh
+++ b/src/ComputingTasks.hh
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2003-2021 Dynare Team
+ * Copyright © 2003-2022 Dynare Team
  *
  * This file is part of Dynare.
  *
@@ -187,12 +187,10 @@ public:
 class RamseyPolicyStatement : public Statement
 {
 private:
-  const SymbolTable &symbol_table;
   const SymbolList symbol_list;
   const OptionsList options_list;
 public:
-  RamseyPolicyStatement(const SymbolTable &symbol_table_arg,
-                        SymbolList symbol_list_arg,
+  RamseyPolicyStatement(SymbolList symbol_list_arg,
                         OptionsList options_list_arg);
   void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
   void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
diff --git a/src/ParsingDriver.cc b/src/ParsingDriver.cc
index 820576d1..4d4f6414 100644
--- a/src/ParsingDriver.cc
+++ b/src/ParsingDriver.cc
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2003-2021 Dynare Team
+ * Copyright © 2003-2022 Dynare Team
  *
  * This file is part of Dynare.
  *
@@ -2097,8 +2097,7 @@ ParsingDriver::ramsey_policy()
     for (const auto &s : it->second.getSymbols())
       check_symbol_is_endogenous(s);
 
-  mod_file->addStatement(make_unique<RamseyPolicyStatement>(mod_file->symbol_table,
-                                                            symbol_list, options_list));
+  mod_file->addStatement(make_unique<RamseyPolicyStatement>(symbol_list, options_list));
   options_list.clear();
   symbol_list.clear();
   planner_discount = nullptr;
-- 
GitLab