Skip to content

Commit a1f15b8

Browse files
committed
speedup: strlength, strempty, file_attributes
1 parent 03c6b05 commit a1f15b8

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

+stdlib/private/file_attributes.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
function a = file_attributes(p)
2-
arguments
3-
p {mustBeTextScalar}
4-
end
52

63
a = [];
74

+stdlib/private/strempty.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
%% STREMPTY is the char / string empty
22

33
function y = strempty(s)
4-
arguments
5-
s {mustBeTextScalar}
6-
end
74

85
y = strlength(s) == 0;
96

10-
end
7+
end

+stdlib/private/strlength.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
% for GNU Octave until it builds in strlength
44

55
function L = strlength(s)
6-
arguments
7-
s {mustBeTextScalar}
8-
end
96

107
if ischar(s)
118
L = length(s);

0 commit comments

Comments
 (0)