@@ -2527,18 +2527,6 @@ _PyDict_GetItemWithError(PyObject *dp, PyObject *kv)
25272527 return _PyDict_GetItem_KnownHash (dp , kv , hash ); // borrowed reference
25282528}
25292529
2530- PyObject *
2531- _PyDict_GetItemIdWithError (PyObject * dp , _Py_Identifier * key )
2532- {
2533- PyObject * kv ;
2534- kv = _PyUnicode_FromId (key ); /* borrowed */
2535- if (kv == NULL )
2536- return NULL ;
2537- Py_hash_t hash = unicode_get_hash (kv );
2538- assert (hash != -1 ); /* interned strings have their hash value initialised */
2539- return _PyDict_GetItem_KnownHash (dp , kv , hash ); // borrowed reference
2540- }
2541-
25422530PyObject *
25432531_PyDict_GetItemStringWithError (PyObject * v , const char * key )
25442532{
@@ -4845,16 +4833,6 @@ _PyDict_Contains_KnownHash(PyObject *op, PyObject *key, Py_hash_t hash)
48454833 return 0 ;
48464834}
48474835
4848- int
4849- _PyDict_ContainsId (PyObject * op , _Py_Identifier * key )
4850- {
4851- PyObject * kv = _PyUnicode_FromId (key ); /* borrowed */
4852- if (kv == NULL ) {
4853- return -1 ;
4854- }
4855- return PyDict_Contains (op , kv );
4856- }
4857-
48584836/* Hack to implement "key in dict" */
48594837static PySequenceMethods dict_as_sequence = {
48604838 0 , /* sq_length */
@@ -5035,16 +5013,6 @@ PyDict_GetItemStringRef(PyObject *v, const char *key, PyObject **result)
50355013 return res ;
50365014}
50375015
5038- int
5039- _PyDict_SetItemId (PyObject * v , _Py_Identifier * key , PyObject * item )
5040- {
5041- PyObject * kv ;
5042- kv = _PyUnicode_FromId (key ); /* borrowed */
5043- if (kv == NULL )
5044- return -1 ;
5045- return PyDict_SetItem (v , kv , item );
5046- }
5047-
50485016int
50495017PyDict_SetItemString (PyObject * v , const char * key , PyObject * item )
50505018{
@@ -5060,15 +5028,6 @@ PyDict_SetItemString(PyObject *v, const char *key, PyObject *item)
50605028 return err ;
50615029}
50625030
5063- int
5064- _PyDict_DelItemId (PyObject * v , _Py_Identifier * key )
5065- {
5066- PyObject * kv = _PyUnicode_FromId (key ); /* borrowed */
5067- if (kv == NULL )
5068- return -1 ;
5069- return PyDict_DelItem (v , kv );
5070- }
5071-
50725031int
50735032PyDict_DelItemString (PyObject * v , const char * key )
50745033{
0 commit comments