@@ -843,35 +843,6 @@ float_is_integer_impl(PyObject *self)
843
843
return o ;
844
844
}
845
845
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
-
875
846
/*[clinic input]
876
847
float.__trunc__
877
848
@@ -1863,14 +1834,6 @@ static PyMethodDef float_methods[] = {
1863
1834
FLOAT_FROMHEX_METHODDEF
1864
1835
FLOAT_HEX_METHODDEF
1865
1836
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
1874
1837
FLOAT___GETNEWARGS___METHODDEF
1875
1838
FLOAT___GETFORMAT___METHODDEF
1876
1839
FLOAT___SET_FORMAT___METHODDEF
0 commit comments