diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-27 14:36:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 14:36:54 (GMT) |
commit | 1dbb427dd67a1de5b3662cbda0277ff2c3b18095 (patch) | |
tree | f100acf83ae488e61f802d26015de4f870156c5f | |
parent | c6539b36c163efff3d6ed02b938a6151325f4db7 (diff) | |
download | cpython-1dbb427dd67a1de5b3662cbda0277ff2c3b18095.zip cpython-1dbb427dd67a1de5b3662cbda0277ff2c3b18095.tar.gz cpython-1dbb427dd67a1de5b3662cbda0277ff2c3b18095.tar.bz2 |
gh-107196: Remove _PyArg_VaParseTupleAndKeywordsFast() function (#107197)
Remove the private _PyArg_VaParseTupleAndKeywordsFast() function: it
is no longer used.
-rw-r--r-- | Include/cpython/modsupport.h | 2 | ||||
-rw-r--r-- | Python/getargs.c | 14 |
2 files changed, 0 insertions, 16 deletions
diff --git a/Include/cpython/modsupport.h b/Include/cpython/modsupport.h index 376336b..cfc2c2c 100644 --- a/Include/cpython/modsupport.h +++ b/Include/cpython/modsupport.h @@ -52,8 +52,6 @@ PyAPI_FUNC(int) _PyArg_ParseStackAndKeywords( PyObject *kwnames, struct _PyArg_Parser *, ...); -PyAPI_FUNC(int) _PyArg_VaParseTupleAndKeywordsFast(PyObject *, PyObject *, - struct _PyArg_Parser *, va_list); PyAPI_FUNC(PyObject * const *) _PyArg_UnpackKeywords( PyObject *const *args, Py_ssize_t nargs, PyObject *kwargs, PyObject *kwnames, diff --git a/Python/getargs.c b/Python/getargs.c index efcf2e3..916e465 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1418,20 +1418,6 @@ _PyArg_ParseStackAndKeywords_SizeT(PyObject *const *args, Py_ssize_t nargs, PyOb } -PyAPI_FUNC(int) -_PyArg_VaParseTupleAndKeywordsFast(PyObject *args, PyObject *keywords, - struct _PyArg_Parser *parser, va_list va) -{ - int retval; - va_list lva; - - va_copy(lva, va); - - retval = vgetargskeywordsfast(args, keywords, parser, &lva, 0); - va_end(lva); - return retval; -} - static void error_unexpected_keyword_arg(PyObject *kwargs, PyObject *kwnames, PyObject *kwtuple, const char *fname) { |