preprocessor: remove unnecessary options_list argument to rplot
parent
909cc995bd
commit
84e680adef
|
@ -518,17 +518,14 @@ DynareSensitivityStatement::writeOutput(ostream &output, const string &basename)
|
|||
output << "dynare_sensitivity(options_gsa);" << endl;
|
||||
}
|
||||
|
||||
RplotStatement::RplotStatement(const SymbolList &symbol_list_arg,
|
||||
const OptionsList &options_list_arg) :
|
||||
symbol_list(symbol_list_arg),
|
||||
options_list(options_list_arg)
|
||||
RplotStatement::RplotStatement(const SymbolList &symbol_list_arg) :
|
||||
symbol_list(symbol_list_arg)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
RplotStatement::writeOutput(ostream &output, const string &basename) const
|
||||
{
|
||||
options_list.writeOutput(output);
|
||||
symbol_list.writeOutput("var_list_", output);
|
||||
output << "rplot(var_list_);" << endl;
|
||||
}
|
||||
|
|
|
@ -150,10 +150,8 @@ class RplotStatement : public Statement
|
|||
{
|
||||
private:
|
||||
const SymbolList symbol_list;
|
||||
const OptionsList options_list;
|
||||
public:
|
||||
RplotStatement(const SymbolList &symbol_list_arg,
|
||||
const OptionsList &options_list_arg);
|
||||
RplotStatement(const SymbolList &symbol_list_arg);
|
||||
virtual void writeOutput(ostream &output, const string &basename) const;
|
||||
};
|
||||
|
||||
|
|
|
@ -1186,8 +1186,7 @@ ParsingDriver::add_in_symbol_list(string *tmp_var)
|
|||
void
|
||||
ParsingDriver::rplot()
|
||||
{
|
||||
mod_file->addStatement(new RplotStatement(symbol_list, options_list));
|
||||
options_list.clear();
|
||||
mod_file->addStatement(new RplotStatement(symbol_list));
|
||||
symbol_list.clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue