Skip to content

Commit 4b8f4ac

Browse files
committed
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.
1 parent 5091c44 commit 4b8f4ac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Parser/action_helpers.c

-3
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,6 @@ _make_posargs(Parser *p,
554554
else if (plain_names == NULL && names_with_default != NULL) {
555555
*posargs = _get_names(p, names_with_default);
556556
}
557-
else if (plain_names != NULL && names_with_default == NULL) {
558-
*posargs = plain_names;
559-
}
560557
else {
561558
*posargs = _Py_asdl_arg_seq_new(0, p->arena);
562559
}

0 commit comments

Comments
 (0)