Skip to content

Commit 1461da0

Browse files
Jonathan EliashivJonathan Eliashiv
Jonathan Eliashiv
authored and
Jonathan Eliashiv
committed
fix compilers
1 parent 3b5d221 commit 1461da0

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

pandas/_libs/src/ujson/python/objToJSON.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,7 @@ int NpyArr_iterNext(JSOBJ _obj, JSONTypeContext *tc) {
538538
}
539539

540540
JSOBJ NpyArr_iterGetValue(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc) {
541-
JSOBJ ret;
542-
ret = GET_TC(tc)->itemValue;
543-
return ret;
541+
return GET_TC(tc)->itemValue;
544542
}
545543

546544
char *NpyArr_iterGetName(JSOBJ Py_UNUSED(obj), JSONTypeContext *tc,

pandas/_libs/tslibs/src/datetime/np_datetime.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -775,18 +775,6 @@ void pandas_timedelta_to_timedeltastruct(npy_timedelta td,
775775
}
776776
}
777777

778-
/*
779-
* Calculates the minutes offset from the 1970 epoch.
780-
*/
781-
static npy_int64 get_datetimestruct_minutes(const npy_datetimestruct *dts)
782-
{
783-
npy_int64 days = get_datetimestruct_days(dts) * 24 * 60;
784-
days += dts->hour * 60;
785-
days += dts->min;
786-
787-
return days;
788-
}
789-
790778
/*
791779
* Gets a tzoffset in minutes by calling the fromutc() function on
792780
* the Python datetime.tzinfo object.

0 commit comments

Comments
 (0)