From 790b138042f2476fdf78a24f50c354d39c7fe0f9 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Wed, 20 Nov 2013 12:17:07 +0100
Subject: [PATCH] preprocessor: remove unused private field in
 ConditionalForecastPathsStatement

---
 ParsingDriver.cc | 2 +-
 Shocks.cc        | 3 +--
 Shocks.hh        | 4 +---
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/ParsingDriver.cc b/ParsingDriver.cc
index d39903bd..a5a4d8d6 100644
--- a/ParsingDriver.cc
+++ b/ParsingDriver.cc
@@ -1948,7 +1948,7 @@ ParsingDriver::plot_conditional_forecast(string *periods)
 void
 ParsingDriver::conditional_forecast_paths()
 {
-  mod_file->addStatement(new ConditionalForecastPathsStatement(det_shocks, mod_file->symbol_table));
+  mod_file->addStatement(new ConditionalForecastPathsStatement(det_shocks));
   det_shocks.clear();
 }
 
diff --git a/Shocks.cc b/Shocks.cc
index d1c2ea70..cc0b7700 100644
--- a/Shocks.cc
+++ b/Shocks.cc
@@ -312,9 +312,8 @@ MShocksStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsolidat
   mod_file_struct.shocks_present_but_simul_not_yet = true;
 }
 
-ConditionalForecastPathsStatement::ConditionalForecastPathsStatement(const AbstractShocksStatement::det_shocks_t &paths_arg, const SymbolTable &symbol_table_arg) :
+ConditionalForecastPathsStatement::ConditionalForecastPathsStatement(const AbstractShocksStatement::det_shocks_t &paths_arg) :
   paths(paths_arg),
-  symbol_table(symbol_table_arg),
   path_length(-1)
 {
 }
diff --git a/Shocks.hh b/Shocks.hh
index de20945c..539a4033 100644
--- a/Shocks.hh
+++ b/Shocks.hh
@@ -90,11 +90,9 @@ class ConditionalForecastPathsStatement : public Statement
 {
 private:
   const AbstractShocksStatement::det_shocks_t paths;
-  const SymbolTable &symbol_table;
   int path_length;
 public:
-  ConditionalForecastPathsStatement(const AbstractShocksStatement::det_shocks_t &paths_arg,
-                                    const SymbolTable &symbol_table_arg);
+  ConditionalForecastPathsStatement(const AbstractShocksStatement::det_shocks_t &paths_arg);
   virtual void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings);
   virtual void writeOutput(ostream &output, const string &basename) const;
 };
-- 
GitLab