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

@ -731,29 +731,9 @@ complex__format__(PyObject* self, PyObject* args)
return _PyUnicodeWriter_Finish(&writer);
}
#if 0
static PyObject *
complex_is_finite(PyObject *self)
{
Py_complex c;
c = ((PyComplexObject *)self)->cval;
return PyBool_FromLong((long)(Py_IS_FINITE(c.real) &&
Py_IS_FINITE(c.imag)));
}
PyDoc_STRVAR(complex_is_finite_doc,
"complex.is_finite() -> bool\n"
"\n"
"Returns True if the real and the imaginary part is finite.");
#endif
static PyMethodDef complex_methods[] = {
{"conjugate", (PyCFunction)complex_conjugate, METH_NOARGS,
complex_conjugate_doc},
#if 0
{"is_finite", (PyCFunction)complex_is_finite, METH_NOARGS,
complex_is_finite_doc},
#endif
{"__getnewargs__", (PyCFunction)complex_getnewargs, METH_NOARGS},
{"__format__", (PyCFunction)complex__format__,
METH_VARARGS, complex__format__doc},