From 4370b76ce4194d03202f9f31c9ab018108f8bd49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Tue, 12 Jul 2022 13:43:08 +0200 Subject: [PATCH] Remove unused function --- src/ModelTree.cc | 12 ------------ src/ModelTree.hh | 2 -- 2 files changed, 14 deletions(-) diff --git a/src/ModelTree.cc b/src/ModelTree.cc index 2fc143fb..43483486 100644 --- a/src/ModelTree.cc +++ b/src/ModelTree.cc @@ -876,18 +876,6 @@ ModelTree::equation_number() const return (equations.size()); } -void -ModelTree::writeDerivative(ostream &output, int eq, int symb_id, int lag, - ExprNodeOutputType output_type, - const temporary_terms_t &temporary_terms) const -{ - if (auto it = derivatives[1].find({ eq, getDerivID(symb_id, lag) }); - it != derivatives[1].end()) - it->second->writeOutput(output, output_type, temporary_terms, {}); - else - output << 0; -} - void ModelTree::computeDerivatives(int order, const set<int> &vars) { diff --git a/src/ModelTree.hh b/src/ModelTree.hh index 90513662..9ca733c4 100644 --- a/src/ModelTree.hh +++ b/src/ModelTree.hh @@ -224,8 +224,6 @@ protected: void computeDerivatives(int order, const set<int> &vars); //! Computes derivatives of the Jacobian and Hessian w.r. to parameters void computeParamsDerivatives(int paramsDerivsOrder); - //! Write derivative of an equation w.r. to a variable - void writeDerivative(ostream &output, int eq, int symb_id, int lag, ExprNodeOutputType output_type, const temporary_terms_t &temporary_terms) const; //! Computes temporary terms (for all equations and derivatives) void computeTemporaryTerms(bool is_matlab, bool no_tmp_terms); //! Computes temporary terms per block -- GitLab