Skip to content

Commit efbc9f5

Browse files
committed
move shortname to examples
This is impractical for modern use and isn't supported by newer matlab.io functions
1 parent 454e0ee commit efbc9f5

File tree

4 files changed

+4
-29
lines changed

4 files changed

+4
-29
lines changed

buildfile.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ function build_exe(context)
220220
["src/is_wsl.cpp", linux], ...
221221
"src/set_permissions.cpp", ...
222222
["src/is_rosetta.cpp", mac], ...
223-
["src/windows_shortname.cpp", win], ...
224223
["src/drop_slash.cpp", normal], ...
225224
};
226225

test/TestWindowsCOM.m renamed to example/TestWindowsCOM.m

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
methods (Test)
99

1010
function test_not(tc, Pn)
11-
tc.verifyEqual(stdlib.windows_shortname(Pn{1}), Pn{2})
11+
tc.verifyEqual(windows_shortname(Pn{1}), Pn{2})
1212
end
1313

1414
function test_short_folder(tc)
@@ -19,7 +19,7 @@ function test_short_folder(tc)
1919
tc.assertThat(progdir, IsFolder, "$Env:PROGRAMFILES is not a directory")
2020
end
2121

22-
short = stdlib.windows_shortname(progdir);
22+
short = windows_shortname(progdir);
2323

2424
if ispc
2525
tc.verifySubstring(short, "PROGRA~1")
@@ -33,7 +33,7 @@ function test_short_folder(tc)
3333

3434
function test_short_file(tc, Pmr)
3535

36-
s = stdlib.windows_shortname(Pmr);
36+
s = windows_shortname(Pmr);
3737

3838
if ispc
3939
if contains(Pmr, " ")
@@ -43,8 +43,7 @@ function test_short_file(tc, Pmr)
4343
tc.verifyLessThanOrEqual(strlength(s), strlength(Pmr))
4444
end
4545

46-
tc.verifyTrue(stdlib.samepath(s, Pmr),...
47-
sprintf("mex: %d", stdlib.is_mex_fun("stdlib.windows_shortname")))
46+
tc.verifyTrue(stdlib.samepath(s, Pmr))
4847

4948
end
5049

File renamed without changes.

src/windows_shortname.cpp

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)