diff options
author | Guido van Rossum <guido@python.org> | 2007-06-13 16:27:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-06-13 16:27:47 (GMT) |
commit | fa331631d4154a3e462e4f50bb946ddb19c0542c (patch) | |
tree | b3fe0ff3f960ec249d71c8dee8ace3e8dc5ff681 /Objects | |
parent | ff0ffb3e4a2a234348b9446731754c95c339af4f (diff) | |
download | cpython-fa331631d4154a3e462e4f50bb946ddb19c0542c.zip cpython-fa331631d4154a3e462e4f50bb946ddb19c0542c.tar.gz cpython-fa331631d4154a3e462e4f50bb946ddb19c0542c.tar.bz2 |
Discard unused function.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index d8da4fc..4cdb7e3 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -1582,40 +1582,6 @@ valid_identifier(PyObject *s) return 1; } -/* Replace Unicode objects in slots. */ - -static PyObject * -_unicode_to_string(PyObject *slots, Py_ssize_t nslots) -{ - PyObject *tmp = NULL; - PyObject *slot_name, *new_name; - Py_ssize_t i; - - for (i = 0; i < nslots; i++) { - if (PyUnicode_Check(slot_name = PyTuple_GET_ITEM(slots, i))) { - if (tmp == NULL) { - tmp = PySequence_List(slots); - if (tmp == NULL) - return NULL; - } - new_name = _PyUnicode_AsDefaultEncodedString(slot_name, - NULL); - if (new_name == NULL) { - Py_DECREF(tmp); - return NULL; - } - Py_INCREF(new_name); - PyList_SET_ITEM(tmp, i, new_name); - Py_DECREF(slot_name); - } - } - if (tmp != NULL) { - slots = PyList_AsTuple(tmp); - Py_DECREF(tmp); - } - return slots; -} - /* Forward */ static int object_init(PyObject *self, PyObject *args, PyObject *kwds); |