Skip to content

Commit 65bf28e

Browse files
committed
remove non-essential calls
1 parent 87832c0 commit 65bf28e

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

+stdlib/expanduser.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
%
33
% Useful for Matlab functions that can't handle ~
44
%
5+
% the string $HOME is not handled.
6+
%
57
%%% Inputs
68
% * p: path to expand, if tilde present
79
%%% Outputs

+stdlib/h5create_group.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
if isa(file, 'H5ML.id')
1717
fid = file;
1818
else
19-
% avoid confusing creating file ./~/a.h5
20-
file = stdlib.expanduser(file);
2119
dcpl = 'H5P_DEFAULT';
2220
if isfile(file)
2321
fid = H5F.open(file, 'H5F_ACC_RDWR', dcpl);

+stdlib/ncsave.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ function ncsave(filename, varname, A, opts)
2424
mustBeReal(A)
2525
end
2626

27-
% avoid creating confusing file ./~/a.nc
28-
filename = stdlib.expanduser(filename);
29-
3027
% coerce if needed
3128
A = coerce_ds(A, opts.type);
3229

0 commit comments

Comments
 (0)