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.
*
@ -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)}
{

View File

@ -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;

View File

@ -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;