From a943463ee5b85819e0d18c0521890955cc028110 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Wed, 20 Nov 2013 12:17:07 +0100 Subject: [PATCH] preprocessor: remove unused private field in ConditionalForecastPathsStatement --- preprocessor/ParsingDriver.cc | 2 +- preprocessor/Shocks.cc | 3 +-- preprocessor/Shocks.hh | 4 +--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/preprocessor/ParsingDriver.cc b/preprocessor/ParsingDriver.cc index d39903bdf..a5a4d8d6f 100644 --- a/preprocessor/ParsingDriver.cc +++ b/preprocessor/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/preprocessor/Shocks.cc b/preprocessor/Shocks.cc index d1c2ea702..cc0b7700e 100644 --- a/preprocessor/Shocks.cc +++ b/preprocessor/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/preprocessor/Shocks.hh b/preprocessor/Shocks.hh index de20945c7..539a40336 100644 --- a/preprocessor/Shocks.hh +++ b/preprocessor/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; };