Remove unused func parameter of _PyStack_UnpackDict()

Issue #29259.
This commit is contained in:
Victor Stinner 2017-01-18 10:31:46 +01:00
parent 52f29591bc
commit 35ecebe165
3 changed files with 3 additions and 5 deletions

View File

@ -193,8 +193,7 @@ PyAPI_FUNC(int) _PyStack_UnpackDict(
Py_ssize_t nargs,
PyObject *kwargs,
PyObject ***p_stack,
PyObject **p_kwnames,
PyObject *func);
PyObject **p_kwnames);
/* Suggested size (number of positional arguments) for arrays of PyObject*
allocated on a C stack to avoid allocating memory on the heap memory. Such

View File

@ -2423,7 +2423,7 @@ _PyStack_AsDict(PyObject **values, PyObject *kwnames)
int
_PyStack_UnpackDict(PyObject **args, Py_ssize_t nargs, PyObject *kwargs,
PyObject ***p_stack, PyObject **p_kwnames, PyObject *func)
PyObject ***p_stack, PyObject **p_kwnames)
{
PyObject **stack, **kwstack;
Py_ssize_t nkwargs;

View File

@ -240,8 +240,7 @@ _PyCFunction_FastCallDict(PyObject *func_obj, PyObject **args, Py_ssize_t nargs,
PyObject *kwnames;
_PyCFunctionFast fastmeth = (_PyCFunctionFast)meth;
if (_PyStack_UnpackDict(args, nargs, kwargs,
&stack, &kwnames, func_obj) < 0) {
if (_PyStack_UnpackDict(args, nargs, kwargs, &stack, &kwnames) < 0) {
return NULL;
}