diff options
author | Carl Meyer <carl@oddbird.net> | 2023-05-11 14:08:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 14:08:13 (GMT) |
commit | 77262458fe3fe9f3f0266bbf578675a906b1e353 (patch) | |
tree | b066d678cfdba47c64e82ed49ecb73a1d1d8a701 /Objects/typeobject.c | |
parent | ddc0e70a326180d90a45dfd8abeded9c9f911217 (diff) | |
download | cpython-77262458fe3fe9f3f0266bbf578675a906b1e353.zip cpython-77262458fe3fe9f3f0266bbf578675a906b1e353.tar.gz cpython-77262458fe3fe9f3f0266bbf578675a906b1e353.tar.bz2 |
gh-87729: improve hit rate of LOAD_SUPER_ATTR specialization (#104270)
Diffstat (limited to 'Objects/typeobject.c')
-rw-r--r-- | Objects/typeobject.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 98fac27..f1745c9 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -10245,18 +10245,6 @@ _PySuper_Lookup(PyTypeObject *su_type, PyObject *su_obj, PyObject *name, int *me return res; } -PyObject * -_PySuper_LookupDescr(PyTypeObject *su_type, PyObject *su_obj, PyObject *name) -{ - PyTypeObject *su_obj_type = supercheck(su_type, su_obj); - if (su_obj_type == NULL) { - return NULL; - } - PyObject *res = _super_lookup_descr(su_type, su_obj_type, name); - Py_DECREF(su_obj_type); - return res; -} - static PyObject * super_descr_get(PyObject *self, PyObject *obj, PyObject *type) { |