summaryrefslogtreecommitdiffstats
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2020-06-29 04:00:43 (GMT)
committerGitHub <noreply@github.com>2020-06-29 04:00:43 (GMT)
commite4f1fe6edb216e04da03ae80b462ca273f00255b (patch)
tree6d6a6d56b5cae2fe05e26a4aa36fcaaa04116b50 /Objects/longobject.c
parentd9f2a13106254c53550583adca70aeb3979f2993 (diff)
downloadcpython-e4f1fe6edb216e04da03ae80b462ca273f00255b.zip
cpython-e4f1fe6edb216e04da03ae80b462ca273f00255b.tar.gz
cpython-e4f1fe6edb216e04da03ae80b462ca273f00255b.tar.bz2
bpo-41123: Remove PyLong_FromUnicode() (GH-21204)
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index d00a7a0..571f53a 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -2504,17 +2504,6 @@ _PyLong_FromBytes(const char *s, Py_ssize_t len, int base)
}
PyObject *
-PyLong_FromUnicode(Py_UNICODE *u, Py_ssize_t length, int base)
-{
- PyObject *v, *unicode = PyUnicode_FromWideChar(u, length);
- if (unicode == NULL)
- return NULL;
- v = PyLong_FromUnicodeObject(unicode, base);
- Py_DECREF(unicode);
- return v;
-}
-
-PyObject *
PyLong_FromUnicodeObject(PyObject *u, int base)
{
PyObject *result, *asciidig;