Skip to content

Commit

Permalink
remove stale function
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Dec 13, 2024
1 parent 3a91919 commit e7732a0
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions xarray/coding/cftime_offsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,26 +941,6 @@ def _generate_range(start, end, periods, offset):
current = next_date


def _translate_closed_to_inclusive(closed):
"""Follows code added in pandas #43504."""
emit_user_level_warning(
"Following pandas, the `closed` parameter is deprecated in "
"favor of the `inclusive` parameter, and will be removed in "
"a future version of xarray.",
FutureWarning,
)
if closed is None:
inclusive = "both"
elif closed in ("left", "right"):
inclusive = closed
else:
raise ValueError(
f"Argument `closed` must be either 'left', 'right', or None. "
f"Got {closed!r}."
)
return inclusive


def cftime_range(
start=None,
end=None,
Expand Down

0 comments on commit e7732a0

Please sign in to comment.