closes bpo-39415: Remove unused codes from longobject.c complexobject.c floatobject.c. (GH-18105)

This commit is contained in:
Dong-hee Na 2020-01-22 11:49:30 +09:00 committed by Benjamin Peterson
parent 47be7d0108
commit 0d5eac8c32
3 changed files with 0 additions and 68 deletions

View file

@ -5411,13 +5411,6 @@ int_bit_length_impl(PyObject *self)
return NULL;
}
#if 0
static PyObject *
long_is_finite(PyObject *v)
{
Py_RETURN_TRUE;
}
#endif
/*[clinic input]
int.as_integer_ratio
@ -5574,10 +5567,6 @@ static PyMethodDef long_methods[] = {
{"conjugate", long_long_meth, METH_NOARGS,
"Returns self, the complex conjugate of any int."},
INT_BIT_LENGTH_METHODDEF
#if 0
{"is_finite", (PyCFunction)long_is_finite, METH_NOARGS,
"Returns always True."},
#endif
INT_TO_BYTES_METHODDEF
INT_FROM_BYTES_METHODDEF
INT_AS_INTEGER_RATIO_METHODDEF