cpython: d3bd384df8ca (original) (raw)
Mercurial > cpython
changeset 69825:d3bd384df8ca 2.7
#11982: remove now unused function. [#11982]
Ezio Melotti ezio.melotti@gmail.com | |
---|---|
date | Wed, 04 May 2011 15:28:31 +0300 |
parents | 1ef2a7319849 |
children | affec521b330 |
files | Modules/_json.c |
diffstat | 1 files changed, 0 insertions(+), 18 deletions(-)[+] [-] Modules/_json.c 18 |
line wrap: on
line diff
--- 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);[](#l1.12)
if (ustr == NULL)[](#l1.13)
return NULL;[](#l1.14)
joinfn = PyObject_GetAttrString(ustr, "join");[](#l1.16)
Py_DECREF(ustr);[](#l1.17)
if (joinfn == NULL)[](#l1.18)
return NULL;[](#l1.19)
- }
- 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;