Skip to content

Commit 5c43548

Browse files
author
José Valim
committed
Remove unused reduce/3 from map
1 parent 82518c3 commit 5c43548

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/elixir/lib/map.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule Map do
1515

1616
defdelegate [keys(map), values(map), size(map), merge(map1, map2), to_list(map)], to: :maps
1717

18-
@compile {:inline, fetch: 2, put: 3, delete: 2, has_key?: 2, reduce: 3}
18+
@compile {:inline, fetch: 2, put: 3, delete: 2, has_key?: 2}
1919

2020
@doc """
2121
Returns a new empty map.
@@ -39,8 +39,4 @@ defmodule Map do
3939
end
4040

4141
def equal?(%{} = map1, %{} = map2), do: map1 === map2
42-
43-
defp reduce(coll, acc, fun) do
44-
Enumerable.Map.reduce(coll, acc, fun)
45-
end
4642
end

0 commit comments

Comments
 (0)