Skip to content

Commit 32e0b9c

Browse files
committed
Remove deprecated conditional in Date
1 parent 0ae9ac3 commit 32e0b9c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/elixir/lib/calendar/date.ex

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,13 +1073,7 @@ defmodule Date do
10731073
def year_of_era(date)
10741074

10751075
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
1076+
calendar.year_of_era(year, month, day)
10831077
end
10841078

10851079
@doc """

0 commit comments

Comments
 (0)