preprocessor: ramsey_model: remove unused symbol_list syntax. Closes #1392
parent
48d6155dbc
commit
f0352541d5
|
@ -363,9 +363,7 @@ ForecastStatement::writeJsonOutput(ostream &output) const
|
|||
output << "}";
|
||||
}
|
||||
|
||||
RamseyModelStatement::RamseyModelStatement(const SymbolList &symbol_list_arg,
|
||||
const OptionsList &options_list_arg) :
|
||||
symbol_list(symbol_list_arg),
|
||||
RamseyModelStatement::RamseyModelStatement(const OptionsList &options_list_arg) :
|
||||
options_list(options_list_arg)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -133,11 +133,9 @@ public:
|
|||
class RamseyModelStatement : public Statement
|
||||
{
|
||||
private:
|
||||
const SymbolList symbol_list;
|
||||
const OptionsList options_list;
|
||||
public:
|
||||
RamseyModelStatement(const SymbolList &symbol_list_arg,
|
||||
const OptionsList &options_list_arg);
|
||||
RamseyModelStatement(const OptionsList &options_list_arg);
|
||||
virtual void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings);
|
||||
virtual void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const;
|
||||
virtual void writeJsonOutput(ostream &output) const;
|
||||
|
|
|
@ -2034,10 +2034,6 @@ ramsey_model : RAMSEY_MODEL ';'
|
|||
{ driver.ramsey_model(); }
|
||||
| RAMSEY_MODEL '(' ramsey_model_options_list ')' ';'
|
||||
{ driver.ramsey_model(); }
|
||||
| RAMSEY_MODEL symbol_list ';'
|
||||
{ driver.ramsey_model(); }
|
||||
| RAMSEY_MODEL '(' ramsey_model_options_list ')' symbol_list ';'
|
||||
{ driver.ramsey_model(); }
|
||||
;
|
||||
|
||||
ramsey_policy : RAMSEY_POLICY ';'
|
||||
|
|
|
@ -1929,8 +1929,7 @@ ParsingDriver::ramsey_model()
|
|||
{
|
||||
if (!mod_file->symbol_table.exists("optimal_policy_discount_factor"))
|
||||
declare_optimal_policy_discount_factor_parameter(data_tree->One);
|
||||
mod_file->addStatement(new RamseyModelStatement(symbol_list, options_list));
|
||||
symbol_list.clear();
|
||||
mod_file->addStatement(new RamseyModelStatement(options_list));
|
||||
options_list.clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue