From 35ecebe165b1f64cb94c1b947db1d0b07e6db69b Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 18 Jan 2017 10:31:46 +0100 Subject: [PATCH] Remove unused func parameter of _PyStack_UnpackDict() Issue #29259. --- Include/abstract.h | 3 +-- Objects/abstract.c | 2 +- Objects/methodobject.c | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Include/abstract.h b/Include/abstract.h index 961279d470..6647be774a 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -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 diff --git a/Objects/abstract.c b/Objects/abstract.c index ee50f02057..682263d7bc 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -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; diff --git a/Objects/methodobject.c b/Objects/methodobject.c index 7bff6a037b..1d55a0cd48 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -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; } -- 2.40.0