@@ -843,35 +843,6 @@ float_is_integer_impl(PyObject *self)
843843 return o ;
844844}
845845
846- #if 0
847- static PyObject *
848- float_is_inf (PyObject * v )
849- {
850- double x = PyFloat_AsDouble (v );
851- if (x == -1.0 && PyErr_Occurred ())
852- return NULL ;
853- return PyBool_FromLong ((long )Py_IS_INFINITY (x ));
854- }
855-
856- static PyObject *
857- float_is_nan (PyObject * v )
858- {
859- double x = PyFloat_AsDouble (v );
860- if (x == -1.0 && PyErr_Occurred ())
861- return NULL ;
862- return PyBool_FromLong ((long )Py_IS_NAN (x ));
863- }
864-
865- static PyObject *
866- float_is_finite (PyObject * v )
867- {
868- double x = PyFloat_AsDouble (v );
869- if (x == -1.0 && PyErr_Occurred ())
870- return NULL ;
871- return PyBool_FromLong ((long )Py_IS_FINITE (x ));
872- }
873- #endif
874-
875846/*[clinic input]
876847float.__trunc__
877848
@@ -1863,14 +1834,6 @@ static PyMethodDef float_methods[] = {
18631834 FLOAT_FROMHEX_METHODDEF
18641835 FLOAT_HEX_METHODDEF
18651836 FLOAT_IS_INTEGER_METHODDEF
1866- #if 0
1867- {"is_inf" , (PyCFunction )float_is_inf , METH_NOARGS ,
1868- "Return True if the float is positive or negative infinite." },
1869- {"is_finite" , (PyCFunction )float_is_finite , METH_NOARGS ,
1870- "Return True if the float is finite, neither infinite nor NaN." },
1871- {"is_nan" , (PyCFunction )float_is_nan , METH_NOARGS ,
1872- "Return True if the float is not a number (NaN)." },
1873- #endif
18741837 FLOAT___GETNEWARGS___METHODDEF
18751838 FLOAT___GETFORMAT___METHODDEF
18761839 FLOAT___SET_FORMAT___METHODDEF
0 commit comments