Skip to content

Commit 7f36d08

Browse files
committed
remove unused code
1 parent 642f520 commit 7f36d08

12 files changed

Lines changed: 7 additions & 43 deletions

+stdlib/get_username.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313

1414
r = missing;
1515

16-
for j = 1:numel(backend)
17-
b = backend{j};
16+
for b = backend
1817
switch b
1918
case 'java'
2019
r = stdlib.java.get_username();
@@ -36,6 +35,3 @@
3635
end
3736

3837
end
39-
40-
41-
%!assert (~isempty(stdlib.get_username()))

+stdlib/hard_link_count.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,3 @@
3939
end
4040

4141
end
42-
43-
44-
%!assert (stdlib.hard_link_count('.') > 0)

+stdlib/hostname.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,3 @@
3737
end
3838

3939
end
40-
41-
%!assert (~isempty(stdlib.shell.hostname()))

+stdlib/inode.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,3 @@
3535
end
3636

3737
end
38-
39-
40-
%!assert (stdlib.inode('.') > 0)

+stdlib/is_admin.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,3 @@
3535
end
3636

3737
end
38-
39-
%!assert (islogical(stdlib.is_admin()))

+stdlib/is_executable_binary.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,3 @@
7171
end
7272

7373
end
74-
75-
%!test
76-
%! if isunix()
77-
%! assert(stdlib.is_executable_binary([matlabroot, '/bin/octave']))
78-
%! end
79-
%!assert (~stdlib.is_executable_binary('.'))

+stdlib/is_mount.m

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@
1313
% * Linux, macOS, Windows: is_mount('/') true
1414

1515
function [i, b] = is_mount(file, backend)
16-
if nargin < 2
17-
backend = {'python', 'shell'};
18-
else
19-
backend = cellstr(backend);
16+
arguments
17+
file {mustBeTextScalar}
18+
backend (1,:) string = ["python", "shell"]
2019
end
2120

2221
i = missing;
2322

24-
for j = 1:numel(backend)
25-
b = backend{j};
23+
for b = backend
2624
switch b
2725
case 'python'
2826
if stdlib.has_python()
@@ -40,5 +38,3 @@
4038
end
4139

4240
end
43-
44-
%!assert (islogical(stdlib.is_mount('.')))

+stdlib/is_removable.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
function [i, b] = is_removable(file, backend)
1212
arguments
13-
file {mustBeTextScalar, mustBeFileOrFolder}
13+
file {mustBeTextScalar}
1414
backend (1,:) string = ["python", "shell"]
1515
end
1616

+stdlib/is_rosetta.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,3 @@
1717
end
1818

1919
end
20-
21-
22-
%!assert(islogical(stdlib.is_rosetta()))

+stdlib/join.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,3 @@
4545
end
4646

4747
end
48-
49-
50-
%!assert (stdlib.join('a', 'b'), 'a/b')

0 commit comments

Comments
 (0)