]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#11982: remove now unused function.
authorEzio Melotti <ezio.melotti@gmail.com>
Wed, 4 May 2011 12:28:31 +0000 (15:28 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Wed, 4 May 2011 12:28:31 +0000 (15:28 +0300)
Modules/_json.c

index 8d63edb2bf7a1997fc6128a8875a4dadf95330ba..7a1fabdba151769536a035d8a44a55485606ac80 100644 (file)
@@ -379,24 +379,6 @@ join_list_unicode(PyObject *lst)
     return PyObject_CallFunctionObjArgs(joinfn, lst, NULL);
 }
 
-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 */