bpo-36974: remove _PyObject_HasFastCall (GH-13460)

This commit is contained in:
Jeroen Demeyer 2019-05-30 12:43:59 +02:00 committed by Petr Viktorin
parent 735e8afa9e
commit c145f3bfbe
3 changed files with 2 additions and 22 deletions

View file

@ -9,22 +9,6 @@ static PyObject *
cfunction_call_varargs(PyObject *func, PyObject *args, PyObject *kwargs);
int
_PyObject_HasFastCall(PyObject *callable)
{
if (PyFunction_Check(callable)) {
return 1;
}
else if (PyCFunction_Check(callable)) {
return !(PyCFunction_GET_FLAGS(callable) & METH_VARARGS);
}
else {
assert (PyCallable_Check(callable));
return 0;
}
}
static PyObject *
null_error(void)
{