summaryrefslogtreecommitdiffstats
path: root/Objects/odictobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/odictobject.c')
-rw-r--r--Objects/odictobject.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/Objects/odictobject.c b/Objects/odictobject.c
index 4a4cd1e..5968e3f 100644
--- a/Objects/odictobject.c
+++ b/Objects/odictobject.c
@@ -1765,21 +1765,6 @@ PyODict_DelItem(PyObject *od, PyObject *key)
return _PyDict_DelItem_KnownHash(od, key, hash);
}
-PyObject *
-_PyODict_KeysAsTuple(PyObject *od) {
- Py_ssize_t i = 0;
- _ODictNode *node;
- PyObject *keys = PyTuple_New(PyODict_Size(od));
- if (keys == NULL)
- return NULL;
- _odict_FOREACH((PyODictObject *)od, node) {
- Py_INCREF(_odictnode_KEY(node));
- PyTuple_SET_ITEM(keys, i, _odictnode_KEY(node));
- i++;
- }
- return keys;
-}
-
/* -------------------------------------------
* The OrderedDict views (keys/values/items)