Skip to content

Commit ad6aae1

Browse files
committed
py/compile: Remove unused pn_colon code when compiling func params.
1 parent 4ec803a commit ad6aae1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

py/compile.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -613,21 +613,19 @@ STATIC void compile_funcdef_lambdef_param(compiler_t *comp, mp_parse_node_t pn)
613613

614614
} else {
615615
mp_parse_node_t pn_id;
616-
mp_parse_node_t pn_colon;
617616
mp_parse_node_t pn_equal;
618617
if (pn_kind == -1) {
619618
// this parameter is just an id
620619

621620
pn_id = pn;
622-
pn_colon = MP_PARSE_NODE_NULL;
623621
pn_equal = MP_PARSE_NODE_NULL;
624622

625623
} else if (pn_kind == PN_typedargslist_name) {
626624
// this parameter has a colon and/or equal specifier
627625

628626
mp_parse_node_struct_t *pns = (mp_parse_node_struct_t*)pn;
629627
pn_id = pns->nodes[0];
630-
pn_colon = pns->nodes[1];
628+
//pn_colon = pns->nodes[1]; // unused
631629
pn_equal = pns->nodes[2];
632630

633631
} else {
@@ -676,9 +674,6 @@ STATIC void compile_funcdef_lambdef_param(compiler_t *comp, mp_parse_node_t pn)
676674
compile_node(comp, pn_equal);
677675
}
678676
}
679-
680-
// TODO pn_colon not implemented
681-
(void)pn_colon;
682677
}
683678
}
684679

0 commit comments

Comments
 (0)