Skip to content

Commit 0a84d16

Browse files
committed
+1
1 parent 2941f6d commit 0a84d16

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Objects/floatobject.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,14 +1666,6 @@ float___getnewargs___impl(PyObject *self)
16661666
return Py_BuildValue("(d)", ((PyFloatObject *)self)->ob_fval);
16671667
}
16681668

1669-
/* this is for the benefit of the pack/unpack routines below */
1670-
typedef enum _py_float_format_type float_format_type;
1671-
#define ieee_big_endian_format _py_float_format_ieee_big_endian
1672-
#define ieee_little_endian_format _py_float_format_ieee_little_endian
1673-
1674-
#define float_format (_PyRuntime.float_state.float_format)
1675-
#define double_format (_PyRuntime.float_state.double_format)
1676-
16771669

16781670
/*[clinic input]
16791671
@permit_long_docstring_body
@@ -1697,8 +1689,6 @@ static PyObject *
16971689
float___getformat___impl(PyTypeObject *type, const char *typestr)
16981690
/*[clinic end generated code: output=2bfb987228cc9628 input=0ae1ba35d192f704]*/
16991691
{
1700-
float_format_type r;
1701-
17021692
if (strcmp(typestr, "double") != 0 || strcmp(typestr, "float") != 0) {
17031693
PyErr_SetString(PyExc_ValueError,
17041694
"__getformat__() argument 1 must be "

0 commit comments

Comments
 (0)