Skip to content

Commit 6bf4b6a

Browse files
committed
remove arguments cast
1 parent e7641e4 commit 6bf4b6a

File tree

8 files changed

+6
-11
lines changed

8 files changed

+6
-11
lines changed

+stdlib/+legacy/set_permissions.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function ok = set_permissions(file, readable, writable, executable)
22
arguments
3-
file (1,1) string
3+
file
44
readable (1,1) {mustBeInteger}
55
writable (1,1) {mustBeInteger}
66
executable (1,1) {mustBeInteger}

+stdlib/+sys/is_dev_drive.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
y = false;
44
cmd = '';
55

6-
76
if ispc()
87
cmd = sprintf('fsutil devdrv query ''%s''', fpath);
98
[s, m] = system(cmd);

+stdlib/get_owner.m

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

1010
function [r, b] = get_owner(file, backend)
1111
arguments
12-
file string
12+
file
1313
backend (1,:) string = ["java", "dotnet", "python", "sys"]
1414
end
1515

+stdlib/get_permissions.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
% * b: backend used
1010

1111
function [perm, b] = get_permissions(file)
12-
arguments
13-
file (1,1) string
14-
end
15-
1612

1713
try
1814
perm = perm2char(filePermissions(file));

+stdlib/inode.m

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

1010
function [i, b] = inode(file, backend)
1111
arguments
12-
file string
12+
file
1313
backend (1,:) string = ["java", "python", "sys"]
1414
end
1515

+stdlib/is_char_device.m

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

2121
function [i, b] = is_char_device(file, backend)
2222
arguments
23-
file string
23+
file
2424
backend (1,:) string = ["python", "sys"]
2525
end
2626

+stdlib/is_dev_drive.m

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

1010
function [i, b] = is_dev_drive(file, backend)
1111
arguments
12-
file (1,1) string
12+
file
1313
backend (1,:) string = ["python", "sys"]
1414
end
1515

+stdlib/set_permissions.m

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

1414
function [ok, b] = set_permissions(file, readable, writable, executable)
1515
arguments
16-
file (1,1) string
16+
file
1717
readable (1,1) {mustBeInteger}
1818
writable (1,1) {mustBeInteger}
1919
executable (1,1) {mustBeInteger}

0 commit comments

Comments
 (0)