diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-05-04 12:28:31 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-05-04 12:28:31 (GMT) |
commit | f5164f6e93b4b5be9f828557b155ec457b39ed8c (patch) | |
tree | cc77a1aabc64cf36b530cfa91f0d60262312f634 /Modules/_json.c | |
parent | fb5d3e75bba8dfb567acefa6fd56ac56721bfe95 (diff) | |
download | cpython-f5164f6e93b4b5be9f828557b155ec457b39ed8c.zip cpython-f5164f6e93b4b5be9f828557b155ec457b39ed8c.tar.gz cpython-f5164f6e93b4b5be9f828557b155ec457b39ed8c.tar.bz2 |
#11982: remove now unused function.
Diffstat (limited to 'Modules/_json.c')
-rw-r--r-- | Modules/_json.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Modules/_json.c b/Modules/_json.c index 8d63edb..7a1fabd 100644 --- a/Modules/_json.c +++ b/Modules/_json.c @@ -380,24 +380,6 @@ join_list_unicode(PyObject *lst) } static PyObject * -join_list_string(PyObject *lst) -{ - /* return ''.join(lst) */ - static PyObject *joinfn = NULL; - if (joinfn == NULL) { - PyObject *ustr = PyString_FromStringAndSize(NULL, 0); - if (ustr == NULL) - return NULL; - - joinfn = PyObject_GetAttrString(ustr, "join"); - Py_DECREF(ustr); - if (joinfn == NULL) - return NULL; - } - return PyObject_CallFunctionObjArgs(joinfn, lst, NULL); -} - -static PyObject * _build_rval_index_tuple(PyObject *rval, Py_ssize_t idx) { /* return (rval, idx) tuple, stealing reference to rval */ PyObject *tpl; |