From 2424b7358c34a8afc744373205bc2ccdf171ca12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Tue, 29 Sep 2020 18:19:22 +0200 Subject: [PATCH] Remove unused ExprNode::collectExogenous() --- src/ExprNode.cc | 9 --------- src/ExprNode.hh | 8 -------- 2 files changed, 17 deletions(-) diff --git a/src/ExprNode.cc b/src/ExprNode.cc index 5ed4aba2..0aaafdbc 100644 --- a/src/ExprNode.cc +++ b/src/ExprNode.cc @@ -135,15 +135,6 @@ ExprNode::collectEndogenous(set> &result) const result.emplace(datatree.symbol_table.getTypeSpecificID(symb_id), lag); } -void -ExprNode::collectExogenous(set> &result) const -{ - set> symb_ids_and_lags; - collectDynamicVariables(SymbolType::exogenous, symb_ids_and_lags); - for (const auto &[symb_id, lag] : symb_ids_and_lags) - result.emplace(datatree.symbol_table.getTypeSpecificID(symb_id), lag); -} - void ExprNode::computeTemporaryTerms(const pair &derivOrder, map, temporary_terms_t> &temp_terms_map, diff --git a/src/ExprNode.hh b/src/ExprNode.hh index 8d88d19d..518370f6 100644 --- a/src/ExprNode.hh +++ b/src/ExprNode.hh @@ -397,14 +397,6 @@ public: */ virtual void collectEndogenous(set> &result) const; - //! Computes the set of exogenous variables in the expression - /*! - Exogenous are stored as integer pairs of the form (type_specific_id, lag). - They are added to the set given in argument. - Note that model local variables are substituted by their expression in the computation. - */ - virtual void collectExogenous(set> &result) const; - class EvalException { };