preprocessor: remove unused, overload of rmExo
parent
5d9aaeef75
commit
3c7f96e29d
|
@ -520,25 +520,6 @@ SymbolTable::rmExo(set<int> &unused) throw (FrozenException)
|
||||||
addObservedVariable(*it);
|
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
|
int
|
||||||
SymbolTable::addLagAuxiliaryVarInternal(bool endo, int orig_symb_id, int orig_lead_lag) throw (FrozenException)
|
SymbolTable::addLagAuxiliaryVarInternal(bool endo, int orig_symb_id, int orig_lead_lag) throw (FrozenException)
|
||||||
{
|
{
|
||||||
|
|
|
@ -305,8 +305,6 @@ public:
|
||||||
set <int> getOrigEndogenous() const;
|
set <int> getOrigEndogenous() const;
|
||||||
//! Remove exogenous variables contained in the set
|
//! Remove exogenous variables contained in the set
|
||||||
void rmExo(set<int> &unused) throw (FrozenException);
|
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
|
inline bool
|
||||||
|
|
Loading…
Reference in New Issue