diff --git a/SymbolTable.cc b/SymbolTable.cc index edce61db36b42f0851bfcfca071ad0e501f3fdda..177ac94e2d586881b937f1da9ef824230bef2116 100644 --- a/SymbolTable.cc +++ b/SymbolTable.cc @@ -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) { diff --git a/SymbolTable.hh b/SymbolTable.hh index 98f88ee1e39359f8f77fd0fa5fc369e0d8dbb186..85267fe645eaadaba191e5eb8482b67f83abdbb5 100644 --- a/SymbolTable.hh +++ b/SymbolTable.hh @@ -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