diff --git a/SymbolTable.cc b/SymbolTable.cc index edce61db..177ac94e 100644 --- a/SymbolTable.cc +++ b/SymbolTable.cc @@ -520,25 +520,6 @@ SymbolTable::rmExo(set &unused) throw (FrozenException) addObservedVariable(*it); } -void -SymbolTable::rmExo(set &unused, SymbolTable &orig_symbol_table) throw (FrozenException) -{ - if (frozen) - throw FrozenException(); - - for (set::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) { diff --git a/SymbolTable.hh b/SymbolTable.hh index 98f88ee1..85267fe6 100644 --- a/SymbolTable.hh +++ b/SymbolTable.hh @@ -305,8 +305,6 @@ public: set getOrigEndogenous() const; //! Remove exogenous variables contained in the set void rmExo(set &unused) throw (FrozenException); - //! Remove exogenous variables contained in the set from the orig_symbol_table. If found, quit - void rmExo(set &unused, SymbolTable &orig_symbol_table) throw (FrozenException); }; inline bool