Skip to content
Snippets Groups Projects
Verified Commit 3681da09 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

remove unused variables from dseries constructor

parent 222beb22
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ classdef dseries<handle % --*-- Unitary tests --*--
% Class for time series.
% Copyright (C) 2013-2018 Dynare Team
% Copyright (C) 2013-2019 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......@@ -84,7 +84,6 @@ methods
o.tags = tags;
elseif ~isoctave() && ~matlab_ver_less_than('8.2') && istable(varargin{1})
% It is assumed that the dates are in the first column.
thistable = varargin{1};
o.name = varargin{1}.Properties.VariableNames(2:end);
o.tex = name2tex(o.name);
o.data = varargin{1}{:,2:end};
......@@ -106,7 +105,7 @@ methods
% Instantiate dseries object with a data file and force the initial date to
% be as given by the second input argument (initial period represented
% with a dates object).
[init, data, varlist, tex, ops, tags] = load_data(varargin{1});
[~, data, varlist, tex, ops, tags] = load_data(varargin{1});
o.data = data;
o.name = varlist;
o.dates = varargin{2}:varargin{2}+(nobs(o)-1);
......@@ -119,7 +118,7 @@ methods
% Instantiate dseries object with a data file and force the initial date to
% be as given by the second input argument (initial period represented with a
% string).
[init, data, varlist, tex, ops, tags] = load_data(varargin{1});
[~, data, varlist, tex, ops, tags] = load_data(varargin{1});
o.data = data;
o.name = varlist;
o.dates = dates(varargin{2}):dates(varargin{2})+(nobs(o)-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment