mirror of
https://github.com/python/cpython.git
synced 2025-08-18 15:51:23 +00:00
#11982: remove now unused function.
This commit is contained in:
parent
fb5d3e75bb
commit
f5164f6e93
1 changed files with 0 additions and 18 deletions
|
@ -379,24 +379,6 @@ join_list_unicode(PyObject *lst)
|
||||||
return PyObject_CallFunctionObjArgs(joinfn, lst, NULL);
|
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 *
|
static PyObject *
|
||||||
_build_rval_index_tuple(PyObject *rval, Py_ssize_t idx) {
|
_build_rval_index_tuple(PyObject *rval, Py_ssize_t idx) {
|
||||||
/* return (rval, idx) tuple, stealing reference to rval */
|
/* return (rval, idx) tuple, stealing reference to rval */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue