Skip to content

Commit edc74ca

Browse files
committed
h4exists: remove unused code
1 parent b683b9c commit edc74ca

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

+stdlib/h4exists.m

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,9 @@
1111
variable (1,1) string
1212
end
1313

14-
exists = false;
14+
sds = hdfinfo(file).SDS;
15+
i = string(sds.Name) == variable;
16+
exists = any(i);
1517

16-
try
17-
sds = hdfinfo(file).SDS;
18-
i = string(sds.Name) == variable;
19-
exists = any(i);
20-
catch e
21-
if e.identifier ~= "MATLAB:imagesci:h5info:unableToFind"
22-
rethrow(e)
23-
end
24-
end
2518

2619
%!testif 0

0 commit comments

Comments
 (0)