Skip to content

Commit e7732a0

Browse files
committed
remove stale function
1 parent 3a91919 commit e7732a0

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

xarray/coding/cftime_offsets.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -941,26 +941,6 @@ def _generate_range(start, end, periods, offset):
941941
current = next_date
942942

943943

944-
def _translate_closed_to_inclusive(closed):
945-
"""Follows code added in pandas #43504."""
946-
emit_user_level_warning(
947-
"Following pandas, the `closed` parameter is deprecated in "
948-
"favor of the `inclusive` parameter, and will be removed in "
949-
"a future version of xarray.",
950-
FutureWarning,
951-
)
952-
if closed is None:
953-
inclusive = "both"
954-
elif closed in ("left", "right"):
955-
inclusive = closed
956-
else:
957-
raise ValueError(
958-
f"Argument `closed` must be either 'left', 'right', or None. "
959-
f"Got {closed!r}."
960-
)
961-
return inclusive
962-
963-
964944
def cftime_range(
965945
start=None,
966946
end=None,

0 commit comments

Comments
 (0)