diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2016-09-08 22:11:11 (GMT) |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2016-09-08 22:11:11 (GMT) |
commit | 4f29e75289592991efcc65a96a2a4a995417b76e (patch) | |
tree | b6d0019f076909e11633cadc468a7822124965a3 /Objects/odictobject.c | |
parent | 7f730cf01d161f2d1793372a0852788ad5f4acb1 (diff) | |
download | cpython-4f29e75289592991efcc65a96a2a4a995417b76e.zip cpython-4f29e75289592991efcc65a96a2a4a995417b76e.tar.gz cpython-4f29e75289592991efcc65a96a2a4a995417b76e.tar.bz2 |
Issue #24254: Drop cls.__definition_order__.
Diffstat (limited to 'Objects/odictobject.c')
-rw-r--r-- | Objects/odictobject.c | 15 |
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) |