From 3c7f96e29d1ea0c52f3a884dad024837d31e2417 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Tue, 19 May 2015 16:47:44 +0200
Subject: [PATCH] preprocessor: remove unused, overload of rmExo

---
 SymbolTable.cc | 19 -------------------
 SymbolTable.hh |  2 --
 2 files changed, 21 deletions(-)

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<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 98f88ee1..85267fe6 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
-- 
GitLab