Skip to content

Commit

Permalink
Remove start_repl_server code from REPL module
Browse files Browse the repository at this point in the history
`REPL.start_repl_server(port::Int)` uses outdated API and no longer functions. It should be removed.

```julia
julia> import REPL

julia> REPL.start_repl_server(8080)
ERROR: MethodError: no method matching listen(::REPL.var"JuliaLang#80#81", ::Int64)
```
  • Loading branch information
mkitti authored Jan 9, 2021
1 parent 8937f7e commit cf0e782
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions stdlib/REPL/src/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1232,12 +1232,4 @@ function run_frontend(repl::StreamREPL, backend::REPLBackendRef)
nothing
end

function start_repl_server(port::Int)
return listen(port) do server, status
client = accept(server)
run_repl(client)
nothing
end
end

end # module

0 comments on commit cf0e782

Please sign in to comment.