summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-01-18 09:31:46 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-01-18 09:31:46 (GMT)
commit35ecebe165b1f64cb94c1b947db1d0b07e6db69b (patch)
treeada7e05fe7e0128ffce4fccf5c8a66cd6f1c41e1
parent52f29591bcc642edf1b588f86a82d2558effb38b (diff)
downloadcpython-35ecebe165b1f64cb94c1b947db1d0b07e6db69b.zip
cpython-35ecebe165b1f64cb94c1b947db1d0b07e6db69b.tar.gz
cpython-35ecebe165b1f64cb94c1b947db1d0b07e6db69b.tar.bz2
Remove unused func parameter of _PyStack_UnpackDict()
Issue #29259.
-rw-r--r--Include/abstract.h3
-rw-r--r--Objects/abstract.c2
-rw-r--r--Objects/methodobject.c3
3 files changed, 3 insertions, 5 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 961279d..6647be7 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 ee50f02..682263d 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 7bff6a0..1d55a0c 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;
}