Skip to content

Commit 601cfd6

Browse files
larsmanswesm
authored andcommitted
rm unused function and variables
Unused function in np_datetime_strings.c commented out since it was referenced from some commented-out source code.
1 parent 38b3eaa commit 601cfd6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pandas/src/datetime/np_datetime_strings.c

+2
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ convert_datetimestruct_utc_to_local(pandas_datetimestruct *out_dts_local,
229229
return 0;
230230
}
231231

232+
#if 0
232233
/*
233234
* Converts a datetimestruct in local time to a datetimestruct in UTC.
234235
*
@@ -303,6 +304,7 @@ convert_datetimestruct_local_to_utc(pandas_datetimestruct *out_dts_utc,
303304

304305
return 0;
305306
}
307+
#endif
306308

307309
/* int */
308310
/* parse_python_string(PyObject* obj, pandas_datetimestruct *dts) { */

pandas/src/period.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1027,10 +1027,10 @@ npy_int64 get_period_ordinal(int year, int month, int day,
10271027
int hour, int minute, int second,
10281028
int freq)
10291029
{
1030-
npy_int64 absdays, delta;
1030+
npy_int64 absdays, delta;
10311031
npy_int64 weeks, days;
1032-
npy_int64 adj_ordinal, ordinal, day_adj;
1033-
int freq_group, fmonth, mdiff, quarter;
1032+
npy_int64 ordinal, day_adj;
1033+
int freq_group, fmonth, mdiff;
10341034
freq_group = get_freq_group(freq);
10351035

10361036
if (freq == FR_SEC) {

0 commit comments

Comments
 (0)