bpo-46920: Remove code that has no explainer why it was disabled (GH-31814)

This commit is contained in:
Oleg Iarygin 2022-03-14 19:02:32 +03:00 committed by GitHub
parent 11c25b87ae
commit e885ac3d5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 56 deletions

View file

@ -516,22 +516,6 @@ instancemethod_repr(PyObject *self)
return result;
}
/*
static long
instancemethod_hash(PyObject *self)
{
long x, y;
x = (long)self;
y = PyObject_Hash(PyInstanceMethod_GET_FUNCTION(self));
if (y == -1)
return -1;
x = x ^ y;
if (x == -1)
x = -2;
return x;
}
*/
PyDoc_STRVAR(instancemethod_doc,
"instancemethod(function)\n\
\n\
@ -569,7 +553,7 @@ PyTypeObject PyInstanceMethod_Type = {
0, /* tp_as_number */
0, /* tp_as_sequence */
0, /* tp_as_mapping */
0, /*(hashfunc)instancemethod_hash, tp_hash */
0, /* tp_hash */
instancemethod_call, /* tp_call */
0, /* tp_str */
instancemethod_getattro, /* tp_getattro */