Skip to content

Commit 7dd1c5e

Browse files
kianelbonoatamir
authored andcommitted
CLN: Remove unreachable code in timedeltas.pyx (pandas-dev#48198)
1 parent 8aa627a commit 7dd1c5e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/_libs/tslibs/timedeltas.pyx

+1-3
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ cpdef int64_t delta_to_nanoseconds(
235235

236236
cdef:
237237
NPY_DATETIMEUNIT in_reso
238-
int64_t n, value, factor
238+
int64_t n
239239

240240
if is_tick_object(delta):
241241
n = delta.n
@@ -278,8 +278,6 @@ cpdef int64_t delta_to_nanoseconds(
278278
f"Cannot cast {str(delta)} to unit={unit_str} without overflow."
279279
) from err
280280

281-
return value
282-
283281

284282
@cython.overflowcheck(True)
285283
cdef object ensure_td64ns(object ts):

0 commit comments

Comments
 (0)