From 4b8f4ac0a2dfbe58aa4c87bf6dde28c9a8922318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Jason=20Dominus=20=28=E9=99=B6=E6=95=8F=E4=BF=AE=29?= Date: Mon, 20 May 2024 11:56:45 -0400 Subject: [PATCH] Remove unused code in _make_posargs `names_with_default` is never `NULL`, even if there are no names with defaults. In that case it points to a structure with `size` zero. --- Parser/action_helpers.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/Parser/action_helpers.c b/Parser/action_helpers.c index 3f6c282ffa7a68b..561fc69c05f5051 100644 --- a/Parser/action_helpers.c +++ b/Parser/action_helpers.c @@ -554,9 +554,6 @@ _make_posargs(Parser *p, else if (plain_names == NULL && names_with_default != NULL) { *posargs = _get_names(p, names_with_default); } - else if (plain_names != NULL && names_with_default == NULL) { - *posargs = plain_names; - } else { *posargs = _Py_asdl_arg_seq_new(0, p->arena); }