We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ae9ac3 commit 32e0b9cCopy full SHA for 32e0b9c
lib/elixir/lib/calendar/date.ex
@@ -1073,13 +1073,7 @@ defmodule Date do
1073
def year_of_era(date)
1074
1075
def year_of_era(%{calendar: calendar, year: year, month: month, day: day}) do
1076
- # TODO: Remove me on 1.17
1077
- # The behaviour implementation already warns on missing callback.
1078
- if function_exported?(calendar, :year_of_era, 3) do
1079
- calendar.year_of_era(year, month, day)
1080
- else
1081
- calendar.year_of_era(year)
1082
- end
+ calendar.year_of_era(year, month, day)
1083
end
1084
1085
@doc """
0 commit comments