Skip to content

Commit

Permalink
Drop incorrect and obsolete Rustler.nif_versions function
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor committed May 29, 2024
1 parent f13cb9e commit dd7c91b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
10 changes: 0 additions & 10 deletions rustler_mix/lib/rustler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,4 @@ defmodule Rustler do

@doc false
def rustler_version, do: "0.32.1"

@doc """
Supported NIF API versions.
"""
def nif_versions,
do: [
~c"2.14",
~c"2.15",
~c"2.16"
]
end
9 changes: 0 additions & 9 deletions rustler_mix/lib/rustler/compiler/messages.ex
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,4 @@ defmodule Rustler.Compiler.Messages do
Note: You should already have this if you made your project with the project generator.
"""
end

def message({:unsupported_nif_version, version}) do
"""
Your current version of Erlang is on NIF version '#{version}'.
Rustler currently supports versions #{inspect(Rustler.nif_versions())}.
Go open an issue about this on github!
"""
end
end

0 comments on commit dd7c91b

Please sign in to comment.