diff options
author | Jeroen Demeyer <J.Demeyer@UGent.be> | 2019-05-30 10:43:59 (GMT) |
---|---|---|
committer | Petr Viktorin <encukou@gmail.com> | 2019-05-30 10:43:58 (GMT) |
commit | c145f3bfbe80d498d40848450d4d33c14e2cf782 (patch) | |
tree | e290ce5742c55e9205b663729a014067f1a0fa04 /Objects | |
parent | 735e8afa9ee942367b5d0807633a2b9f662cbdbf (diff) | |
download | cpython-c145f3bfbe80d498d40848450d4d33c14e2cf782.zip cpython-c145f3bfbe80d498d40848450d4d33c14e2cf782.tar.gz cpython-c145f3bfbe80d498d40848450d4d33c14e2cf782.tar.bz2 |
bpo-36974: remove _PyObject_HasFastCall (GH-13460)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/call.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Objects/call.c b/Objects/call.c index 183a5c2..55dfc52 100644 --- a/Objects/call.c +++ b/Objects/call.c @@ -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) { |