Dialyxir.Warnings.UnusedFunction (Dialyxir v1.4.4) View Source

Due to issues higher in the function or call stack, while the function is recognized as used by the compiler, it will never be recognized as having been called until the other error is resolved.

Example

defmodule Example do
  def ok() do
    raise "error"

    unused()
  end

  defp unused(), do: :ok
end