[Python-checkins] cpython (2.7): #11982: remove now unused function.
ezio.melotti
python-checkins at python.org
Wed May 4 14:28:45 CEST 2011
http://hg.python.org/cpython/rev/d3bd384df8ca
changeset: 69825:d3bd384df8ca
branch: 2.7
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Wed May 04 15:28:31 2011 +0300
summary:
#11982: remove now unused function.
files:
Modules/_json.c | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
diff --git a/Modules/_json.c b/Modules/_json.c
--- a/Modules/_json.c
+++ b/Modules/_json.c
@@ -380,24 +380,6 @@
}
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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list