From a6b97581c379bde8e5022e230075c18421a8094a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Ry=C3=BBk=29?= <stepan@adjemian.eu> Date: Mon, 18 Dec 2023 07:46:33 +0100 Subject: [PATCH] Remove unused output arguments. --- src/dtest.m | 4 ++-- src/get_directory_description.m | 2 +- src/mtest.m | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dtest.m b/src/dtest.m index 2d1a76f..8a76f74 100644 --- a/src/dtest.m +++ b/src/dtest.m @@ -40,7 +40,7 @@ if nargin>1 || isempty(tpath) end % Relative path -[fpath, fname, ext] = fileparts(fun); +[fpath, fname] = fileparts(fun); % Absolute path fpath = [original_directory filesep fpath]; @@ -73,4 +73,4 @@ end if nargin>1 || isempty(tpath) cd(original_directory); -end \ No newline at end of file +end diff --git a/src/get_directory_description.m b/src/get_directory_description.m index 4039fdd..8718102 100644 --- a/src/get_directory_description.m +++ b/src/get_directory_description.m @@ -41,7 +41,7 @@ for f=1:length(dd) flist = { flist{:} r{:} }; else % Filter out files without m extension. - [make, my, ext] = fileparts(dd(f).name); + [~, ~, ext] = fileparts(dd(f).name); if isequal(ext, '.m') flist{length(flist)+1} = [basedir filesep dd(f).name]; end diff --git a/src/mtest.m b/src/mtest.m index 223de43..b165a0f 100644 --- a/src/mtest.m +++ b/src/mtest.m @@ -48,7 +48,7 @@ check = 1; if nargin<2 || isempty(fpath) fname = append_extension_if_needed(fname); fid = fopen(fname,'r'); - [~, FNAME, vessel] = fileparts(fname); + [~, FNAME] = fileparts(fname); else fname = append_extension_if_needed(fname); fid = fopen([fpath filesep fname],'r'); -- GitLab