diff options
author | Oleg Iarygin <oleg@arhadthedev.net> | 2022-03-14 16:03:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 16:03:21 (GMT) |
commit | a52f82baf246e2fbbc58fe03ef7a51f3cc9514e1 (patch) | |
tree | e2fb015a32f56f323bcc998e25ab3bb8c7735f38 /Objects | |
parent | e885ac3d5f2fd83617ab75a098aab269b7a446c3 (diff) | |
download | cpython-a52f82baf246e2fbbc58fe03ef7a51f3cc9514e1.zip cpython-a52f82baf246e2fbbc58fe03ef7a51f3cc9514e1.tar.gz cpython-a52f82baf246e2fbbc58fe03ef7a51f3cc9514e1.tar.bz2 |
bpo-46920: Remove disabled debug code added decades ago and likely unnecessary (GH-31812)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 2261b9a..5dfe6e1 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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} }; |