Skip to content

Commit

Permalink
remove legacy io_request handlers
Browse files Browse the repository at this point in the history
we don't support OTP < R15B
  • Loading branch information
lukaszsamson committed Jan 10, 2021
1 parent 9fc2188 commit 01c8bee
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions apps/elixir_ls_utils/lib/output_device.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,12 @@ defmodule ElixirLS.Utils.OutputDevice do
{:noreply, s}
end

@impl GenServer
def handle_info({:io_request, from, reply_as, {:put_chars, characters}}, s) do
output(from, reply_as, characters, s)
{:noreply, s}
end

@impl GenServer
def handle_info({:io_request, from, reply_as, {:put_chars, _encoding, module, func, args}}, s) do
output(from, reply_as, apply(module, func, args), s)
{:noreply, s}
end

@impl GenServer
def handle_info({:io_request, from, reply_as, {:put_chars, module, func, args}}, s) do
output(from, reply_as, apply(module, func, args), s)
{:noreply, s}
end

@impl GenServer
def handle_info({:io_request, from, reply_as, {:requests, reqs}}, s) do
for req <- reqs do
Expand Down

0 comments on commit 01c8bee

Please sign in to comment.