bpo-46920: Remove disabled debug code added decades ago and likely u… · python/cpython@a52f82b

Original file line numberDiff line numberDiff line change

@@ -13623,14 +13623,6 @@ unicode_zfill_impl(PyObject *self, Py_ssize_t width)

1362313623

return u;

1362413624

}

1362513625
13626-

#if 0

13627-

static PyObject *

13628-

unicode__decimal2ascii(PyObject *self)

13629-

{

13630-

return PyUnicode_TransformDecimalAndSpaceToASCII(self);

13631-

}

13632-

#endif

13633-
1363413626

PyDoc_STRVAR(startswith__doc__,

1363513627

"S.startswith(prefix[, start[, end]]) -> bool\n\

1363613628

\n\

@@ -14216,11 +14208,6 @@ static PyMethodDef unicode_methods[] = {

1421614208

UNICODE___FORMAT___METHODDEF

1421714209

UNICODE_MAKETRANS_METHODDEF

1421814210

UNICODE_SIZEOF_METHODDEF

14219-

#if 0

14220-

/* These methods are just used for debugging the implementation. */

14221-

{"_decimal2ascii", (PyCFunction) unicode__decimal2ascii, METH_NOARGS},

14222-

#endif

14223-
1422414211

{"__getnewargs__", unicode_getnewargs, METH_NOARGS},

1422514212

{NULL, NULL}

1422614213

};