Remove obsolete stuff from pow/log aux vars

issue#70
Sébastien Villemot 2013-04-25 17:26:39 +02:00
parent 270a5db60a
commit 13ecc92ff4
2 changed files with 0 additions and 54 deletions

View File

@ -386,48 +386,6 @@ SymbolTable::addMultiplierAuxiliaryVar(int index) throw (FrozenException)
return symb_id;
}
int
SymbolTable::addLogAuxiliaryVar(int index) throw (FrozenException)
{
ostringstream varname;
int symb_id;
varname << "AUX_LOG_" << index+1;
try
{
symb_id = addSymbol(varname.str(), eEndogenous);
}
catch (AlreadyDeclaredException &e)
{
cerr << "ERROR: you should rename your variable called " << varname.str() << ", this name is internally used by Dynare" << endl;
exit(EXIT_FAILURE);
}
aux_vars.push_back(AuxVarInfo(symb_id, avMultiplier, 0, 0, index));
return symb_id;
}
int
SymbolTable::addPowAuxiliaryVar(int index) throw (FrozenException)
{
ostringstream varname;
int symb_id;
varname << "AUX_POW_" << index+1;
try
{
symb_id = addSymbol(varname.str(), eEndogenous);
}
catch (AlreadyDeclaredException &e)
{
cerr << "ERROR: you should rename your variable called " << varname.str() << ", this name is internally used by Dynare" << endl;
exit(EXIT_FAILURE);
}
aux_vars.push_back(AuxVarInfo(symb_id, avMultiplier, 0, 0, index));
return symb_id;
}
int
SymbolTable::searchAuxiliaryVars(int orig_symb_id, int orig_lead_lag) const throw (SearchFailedException)
{

View File

@ -221,18 +221,6 @@ public:
\return the symbol ID of the new symbol
*/
int addMultiplierAuxiliaryVar(int index) throw (FrozenException);
//! Adds an auxiliary variable for log expression
/*!
\param[in] index Used to construct the variable name
\return the symbol ID of the new symbol
*/
int addLogAuxiliaryVar(int index) throw (FrozenException);
//! Adds an auxiliary variable for power expression
/*!
\param[in] index Used to construct the variable name
\return the symbol ID of the new symbol
*/
int addPowAuxiliaryVar(int index) throw (FrozenException);
//! Searches auxiliary variables which are substitutes for a given symbol_id and lead/lag
/*!
The search is only performed among auxiliary variables of endo/exo lag.