remove unused variable in dynare_config

parent d51208f2
......@@ -16,7 +16,7 @@ function dynare(fname, varargin)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2001-2018 Dynare Team
% Copyright (C) 2001-2019 Dynare Team
%
% This file is part of Dynare.
%
......@@ -66,7 +66,7 @@ end
check_matlab_path(change_path_flag);
% Detect if MEX files are present; if not, use alternative M-files
dynareroot = dynare_config('', preprocessoroutput);
dynareroot = dynare_config();
warning_config()
......
function dynareroot = dynare_config(path_to_dynare, verbose)
function dynareroot = dynare_config(path_to_dynare)
%function dynareroot = dynare_config(path_to_dynare)
%
% This function tests the existence of valid mex files (for qz
% decomposition, solution to sylvester equation and kronecker
% products...) and, if needed, add paths to the matlab versions
......@@ -15,7 +16,7 @@ function dynareroot = dynare_config(path_to_dynare, verbose)
% SPECIAL REQUIREMENTS
% none
% Copyright (C) 2001-2018 Dynare Team
% Copyright (C) 2001-2019 Dynare Team
%
% This file is part of Dynare.
%
......@@ -41,10 +42,6 @@ dynareroot = strrep(which('dynare'),'dynare.m','');
origin = pwd();
cd([dynareroot '/..'])
if ~nargin || nargin==1
verbose = 1;
end
p = {'/distributions/' ; ...
'/kalman/' ; ...
'/kalman/likelihood' ; ...
......
......@@ -79,7 +79,7 @@ more off
if strcmpi(flag,'--test')
if nargin>1
dynare_path = dynare_config([],0);
dynare_path = dynare_config();
number_of_matlab_routines = length(varargin);
for i=1:number_of_matlab_routines
dtest(varargin{i},[dynare_path '..' filesep 'tests']);
......@@ -175,7 +175,7 @@ end
if strcmpi(flag,'--info')
if nargin==2
dynare_config([],0);
dynare_config();
dynInfo(varargin{1})
else
if nargin<2
......
......@@ -207,14 +207,14 @@ end
%$ cd(path_to_mex);
%$ tar('local_state_space_iteration_2.tar',['local_state_space_iteration_2.' mexext]);
%$ cd(where_am_i_coming_from);
%$ dynare_config([],0);
%$ dynare_config();
%$ y1b = local_state_space_iteration_2(yhat,epsilon,ghx,ghu,constant,ghxx,ghuu,ghxu,1);
%$ [y2b,y2b_] = local_state_space_iteration_2(yhat,epsilon,ghx,ghu,constant,ghxx,ghuu,ghxu,yhat_,ss,1);
%$ cd(path_to_mex);
%$ untar('local_state_space_iteration_2.tar');
%$ delete('local_state_space_iteration_2.tar');
%$ cd(where_am_i_coming_from);
%$ dynare_config([],0);
%$ dynare_config();
%$ % Check the results.
%$ t(1) = dassert(y1a,y1b);
%$ t(2) = dassert(y2a,y2b);
......
% Copyright (C) 2013-2017 Dynare Team
% Copyright (C) 2013-2019 Dynare Team
%
% This file is part of Dynare.
%
......@@ -17,7 +17,7 @@
top_test_dir = getenv('TOP_TEST_DIR');
addpath([top_test_dir filesep '..' filesep 'matlab']);
dynare_config([], 0);
dynare_config();
if isoctave
load_octave_packages
......
## Copyright (C) 2013-2017 Dynare Team
## Copyright (C) 2013-2019 Dynare Team
##
## This file is part of Dynare.
##
......@@ -31,7 +31,7 @@ endif
putenv("GNUTERM", "dumb")
## To add default directories, empty dseries objects
dynare_config([], 0);
dynare_config();
printf("\n*** TESTING: run_reporting_test_octave.m ***\n");
try
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment