preprocessor: remove unused, overload of rmExo

issue#70
Houtan Bastani 2015-05-19 16:47:44 +02:00
parent 5d9aaeef75
commit 3c7f96e29d
2 changed files with 0 additions and 21 deletions

View File

@ -520,25 +520,6 @@ SymbolTable::rmExo(set<int> &unused) throw (FrozenException)
addObservedVariable(*it);
}
void
SymbolTable::rmExo(set<int> &unused, SymbolTable &orig_symbol_table) throw (FrozenException)
{
if (frozen)
throw FrozenException();
for (set<int>::const_iterator it = unused.begin(); it != unused.end(); it++)
try
{
string name = orig_symbol_table.getName(*it);
int symbid = getID(name);
cerr << "ERROR: " << name << "used in expression but not found in model block" << endl;
exit(EXIT_FAILURE);
}
catch (...)
{
}
}
int
SymbolTable::addLagAuxiliaryVarInternal(bool endo, int orig_symb_id, int orig_lead_lag) throw (FrozenException)
{

View File

@ -305,8 +305,6 @@ public:
set <int> getOrigEndogenous() const;
//! Remove exogenous variables contained in the set
void rmExo(set<int> &unused) throw (FrozenException);
//! Remove exogenous variables contained in the set from the orig_symbol_table. If found, quit
void rmExo(set<int> &unused, SymbolTable &orig_symbol_table) throw (FrozenException);
};
inline bool