Skip to content

Commit

Permalink
Remove legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Nov 25, 2024
1 parent d2ca06e commit ddda194
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/ex_doc/utils.ex
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
defmodule ExDoc.Utils do
@moduledoc false

@elixir_gte_1_14? Version.match?(System.version(), ">= 1.14.0")

@doc """
Emits a warning.
"""
def warn(message, stacktrace_info) do
set_warned()

# TODO: remove check when we require Elixir v1.14
if @elixir_gte_1_14? do
IO.warn(message, stacktrace_info)
else
IO.warn(message, [])
end
IO.warn(message, stacktrace_info)
end

@doc """
Expand Down

0 comments on commit ddda194

Please sign in to comment.