Skip to content

Commit 73ccc86

Browse files
committed
Remove open_documentation() command and test
1 parent 18fc3d2 commit 73ccc86

File tree

2 files changed

+0
-41
lines changed

2 files changed

+0
-41
lines changed

src/Gurobi_jll.jl

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,4 @@ JLLWrappers.@generate_main_file_header("Gurobi")
1414

1515
JLLWrappers.@generate_main_file("Gurobi", UUID("c018c7e6-a5b0-4aea-8f80-9c1ef9991411"))
1616

17-
function get_documentation_path()
18-
path = @static if Sys.iswindows()
19-
joinpath("Doc", "Gurobi", "refman", "index.html")
20-
else
21-
joinpath("share", "doc", "gurobi", "refman", "index.html")
22-
end
23-
return joinpath(artifact_dir, path)
24-
end
25-
26-
function _browser_command(path::String)
27-
@static if Sys.isapple()
28-
return `open $path`
29-
elseif Sys.iswindows()
30-
return `cmd /c start $path`
31-
else
32-
@assert Sys.islinux()
33-
return `xdg-open $path`
34-
end
35-
end
36-
37-
"""
38-
open_documentation()
39-
40-
Open a local copy of the Gurobi documentation in your browser.
41-
"""
42-
open_documentation() = run(_browser_command(get_documentation_path()))
43-
4417
end # module Gurobi_jll

test/runtests.jl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,3 @@ end
5353
@test startswith(unsafe_string(ret), "No Gurobi license found")
5454
end
5555
end
56-
57-
@testset "open_documentation" begin
58-
@test isfile(Gurobi_jll.get_documentation_path())
59-
if Sys.isapple()
60-
@test Gurobi_jll._browser_command("abc") == `open abc`
61-
Gurobi_jll.open_documentation()
62-
elseif Sys.iswindows()
63-
@test Gurobi_jll._browser_command("abc") == `cmd /c start abc`
64-
Gurobi_jll.open_documentation()
65-
else
66-
@test Gurobi_jll._browser_command("abc") == `xdg-open abc`
67-
# Gurobi_jll.open_documentation() # Errors in CI
68-
end
69-
end

0 commit comments

Comments
 (0)