Remove unused member in the RamseyPolicyStatement class

last-simulation-period
Sébastien Villemot 2022-01-06 14:47:22 +01:00
parent 5572e478f1
commit 75a26b6d11
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
3 changed files with 6 additions and 11 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright © 2003-2021 Dynare Team * Copyright © 2003-2022 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
@ -619,10 +619,8 @@ RamseyConstraintsStatement::writeJsonOutput(ostream &output) const
output << "}"; output << "}";
} }
RamseyPolicyStatement::RamseyPolicyStatement(const SymbolTable &symbol_table_arg, RamseyPolicyStatement::RamseyPolicyStatement(SymbolList symbol_list_arg,
SymbolList symbol_list_arg,
OptionsList options_list_arg) : OptionsList options_list_arg) :
symbol_table{symbol_table_arg},
symbol_list{move(symbol_list_arg)}, symbol_list{move(symbol_list_arg)},
options_list{move(options_list_arg)} options_list{move(options_list_arg)}
{ {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright © 2003-2021 Dynare Team * Copyright © 2003-2022 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
@ -187,12 +187,10 @@ public:
class RamseyPolicyStatement : public Statement class RamseyPolicyStatement : public Statement
{ {
private: private:
const SymbolTable &symbol_table;
const SymbolList symbol_list; const SymbolList symbol_list;
const OptionsList options_list; const OptionsList options_list;
public: public:
RamseyPolicyStatement(const SymbolTable &symbol_table_arg, RamseyPolicyStatement(SymbolList symbol_list_arg,
SymbolList symbol_list_arg,
OptionsList options_list_arg); OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override; void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override; void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;

View File

@ -1,5 +1,5 @@
/* /*
* Copyright © 2003-2021 Dynare Team * Copyright © 2003-2022 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
@ -2097,8 +2097,7 @@ ParsingDriver::ramsey_policy()
for (const auto &s : it->second.getSymbols()) for (const auto &s : it->second.getSymbols())
check_symbol_is_endogenous(s); check_symbol_is_endogenous(s);
mod_file->addStatement(make_unique<RamseyPolicyStatement>(mod_file->symbol_table, mod_file->addStatement(make_unique<RamseyPolicyStatement>(symbol_list, options_list));
symbol_list, options_list));
options_list.clear(); options_list.clear();
symbol_list.clear(); symbol_list.clear();
planner_discount = nullptr; planner_discount = nullptr;