From e49153fb98ade48395b80271093bd763e771b3da Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 11 Oct 2016 12:29:54 +1100 Subject: [PATCH] py/compile: Remove unreachable code. --- py/compile.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/py/compile.c b/py/compile.c index 0ea8a3c150..de75bcdc3c 100644 --- a/py/compile.c +++ b/py/compile.c @@ -2836,12 +2836,10 @@ STATIC void compile_scope_func_annotations(compiler_t *comp, mp_parse_node_t pn) // no annotation return; } - } else if (MP_PARSE_NODE_STRUCT_KIND(pns) == PN_typedargslist_dbl_star) { + } else { + assert(MP_PARSE_NODE_STRUCT_KIND(pns) == PN_typedargslist_dbl_star); // double star with possible annotation // fallthrough - } else { - // no annotation - return; } mp_parse_node_t pn_annotation = pns->nodes[1];