bpo-46920: Remove disabled debug code added decades ago and likely unnecessary (GH-31812)

This commit is contained in:
Oleg Iarygin 2022-03-14 19:03:21 +03:00 committed by GitHub
parent e885ac3d5f
commit a52f82baf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 42 deletions

View file

@ -13623,14 +13623,6 @@ unicode_zfill_impl(PyObject *self, Py_ssize_t width)
return u;
}
#if 0
static PyObject *
unicode__decimal2ascii(PyObject *self)
{
return PyUnicode_TransformDecimalAndSpaceToASCII(self);
}
#endif
PyDoc_STRVAR(startswith__doc__,
"S.startswith(prefix[, start[, end]]) -> bool\n\
\n\
@ -14216,11 +14208,6 @@ static PyMethodDef unicode_methods[] = {
UNICODE___FORMAT___METHODDEF
UNICODE_MAKETRANS_METHODDEF
UNICODE_SIZEOF_METHODDEF
#if 0
/* These methods are just used for debugging the implementation. */
{"_decimal2ascii", (PyCFunction) unicode__decimal2ascii, METH_NOARGS},
#endif
{"__getnewargs__", unicode_getnewargs, METH_NOARGS},
{NULL, NULL}
};