From 31ff8da8532172a08ed74a979f55c34da79f85d2 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Fri, 19 Aug 2011 15:17:04 +0200 Subject: [PATCH] remove unused variables from preprocessor --- ModelTree.cc | 3 +-- StaticModel.cc | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ModelTree.cc b/ModelTree.cc index 5060b143..90b19941 100644 --- a/ModelTree.cc +++ b/ModelTree.cc @@ -418,7 +418,7 @@ ModelTree::computePrologueAndEpilogue(const jacob_map_t &static_jacobian_arg, ve equation_type_and_normalized_equation_t ModelTree::equationTypeDetermination(const map >, expr_t> &first_order_endo_derivatives, const vector &Index_Var_IM, const vector &Index_Equ_IM, int mfs) const { - expr_t lhs, rhs; + expr_t lhs; BinaryOpNode *eq_node; EquationType Equation_Simulation_Type; equation_type_and_normalized_equation_t V_Equation_Simulation_Type(equations.size()); @@ -428,7 +428,6 @@ ModelTree::equationTypeDetermination(const map >, expr_ int var = Index_Var_IM[i]; eq_node = equations[eq]; lhs = eq_node->get_arg1(); - rhs = eq_node->get_arg2(); Equation_Simulation_Type = E_SOLVE; map >, expr_t>::const_iterator derivative = first_order_endo_derivatives.find(make_pair(eq, make_pair(var, 0))); pair res; diff --git a/StaticModel.cc b/StaticModel.cc index cbc23d73..b30fe30b 100644 --- a/StaticModel.cc +++ b/StaticModel.cc @@ -203,7 +203,6 @@ StaticModel::writeModelEquationsOrdered_M(const string &static_basename) const map reference_count; temporary_terms_t local_temporary_terms; ofstream output; - int nze; vector feedback_variables; deriv_node_temp_terms_t tef_terms; ExprNodeOutputType local_output_type; @@ -219,7 +218,6 @@ StaticModel::writeModelEquationsOrdered_M(const string &static_basename) const //recursive_variables.clear(); feedback_variables.clear(); //For a block composed of a single equation determines wether we have to evaluate or to solve the equation - nze = derivative_endo[block].size(); BlockSimulationType simulation_type = getBlockSimulationType(block); unsigned int block_size = getBlockSize(block); unsigned int block_mfs = getBlockMfs(block);