From 9b458865263d2e81747c46e63a351c24f4bdb74b Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Tue, 17 May 2022 15:30:47 +0200
Subject: [PATCH] dyn_ramsey_static.m: remove unnecessary piece of code

---
 matlab/dyn_ramsey_static.m | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/matlab/dyn_ramsey_static.m b/matlab/dyn_ramsey_static.m
index 42a553c342..be068e71db 100644
--- a/matlab/dyn_ramsey_static.m
+++ b/matlab/dyn_ramsey_static.m
@@ -153,11 +153,6 @@ else
     needs_set_auxiliary_variables = 0;
 end
 
-% value and Jacobian of objective function
-ex = zeros(1,M.exo_nbr);
-[U,Uy,Uyy] = feval([fname '.objective.static'],x,ex, params);
-Uyy = reshape(Uyy,endo_nbr,endo_nbr);
-
 % set multipliers and auxiliary variables that
 % depends on multipliers to 0 to compute residuals
 if (options_.bytecode)
@@ -171,7 +166,6 @@ end
 % index of multipliers and corresponding equations
 % the auxiliary variables before the Lagrange multipliers are treated
 % as ordinary endogenous variables
-aux_eq = [1:orig_endo_aux_nbr, orig_endo_aux_nbr+orig_eq_nbr+1:size(fJ,1)];
 A = fJ(1:orig_endo_aux_nbr,orig_endo_nbr+find(aux_vars_type==6));
 y = res(1:orig_endo_aux_nbr);
 mult = -A\y;
-- 
GitLab