py/compile: Remove debugging code for compiler dispatch.
It was a relic from the days of developing the compiler and is no longer needed, and it's impossible to trigger via a test.
This commit is contained in:
parent
db4e009217
commit
deaa57acf3
11
py/compile.c
11
py/compile.c
|
@ -2723,15 +2723,8 @@ STATIC void compile_node(compiler_t *comp, mp_parse_node_t pn) {
|
|||
mp_parse_node_struct_t *pns = (mp_parse_node_struct_t*)pn;
|
||||
EMIT_ARG(set_source_line, pns->source_line);
|
||||
compile_function_t f = compile_function[MP_PARSE_NODE_STRUCT_KIND(pns)];
|
||||
if (f == NULL) {
|
||||
#if MICROPY_DEBUG_PRINTERS
|
||||
printf("node %u cannot be compiled\n", (uint)MP_PARSE_NODE_STRUCT_KIND(pns));
|
||||
mp_parse_node_print(pn, 0);
|
||||
#endif
|
||||
compile_syntax_error(comp, pn, "internal compiler error");
|
||||
} else {
|
||||
f(comp, pns);
|
||||
}
|
||||
assert(f != NULL);
|
||||
f(comp, pns);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue