Skip to content

Commit dd7c91b

Browse files
committed
Drop incorrect and obsolete Rustler.nif_versions function
1 parent f13cb9e commit dd7c91b

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

rustler_mix/lib/rustler.ex

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,4 @@ defmodule Rustler do
171171

172172
@doc false
173173
def rustler_version, do: "0.32.1"
174-
175-
@doc """
176-
Supported NIF API versions.
177-
"""
178-
def nif_versions,
179-
do: [
180-
~c"2.14",
181-
~c"2.15",
182-
~c"2.16"
183-
]
184174
end

rustler_mix/lib/rustler/compiler/messages.ex

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,4 @@ defmodule Rustler.Compiler.Messages do
6161
Note: You should already have this if you made your project with the project generator.
6262
"""
6363
end
64-
65-
def message({:unsupported_nif_version, version}) do
66-
"""
67-
Your current version of Erlang is on NIF version '#{version}'.
68-
Rustler currently supports versions #{inspect(Rustler.nif_versions())}.
69-
70-
Go open an issue about this on github!
71-
"""
72-
end
7364
end

0 commit comments

Comments
 (0)