diff --git a/ast27/Parser/parser.c b/ast27/Parser/parser.c index d4367537..e2d30c38 100644 --- a/ast27/Parser/parser.c +++ b/ast27/Parser/parser.c @@ -371,22 +371,6 @@ showtree(grammar *g, node *n) printf("? "); } -void -printtree(parser_state *ps) -{ - if (Py_DebugFlag) { - printf("Parse tree:\n"); - dumptree(ps->p_grammar, ps->p_tree); - printf("\n"); - printf("Tokens:\n"); - showtree(ps->p_grammar, ps->p_tree); - printf("\n"); - } - printf("Listing:\n"); - PyNode_ListTree(ps->p_tree); - printf("\n"); -} - #endif /* Py_DEBUG */ /* diff --git a/ast3/Parser/parser.c b/ast3/Parser/parser.c index 102a1698..1d8900ba 100644 --- a/ast3/Parser/parser.c +++ b/ast3/Parser/parser.c @@ -382,22 +382,6 @@ showtree(grammar *g, node *n) printf("? "); } -void -printtree(parser_state *ps) -{ - if (Py_DebugFlag) { - printf("Parse tree:\n"); - dumptree(ps->p_grammar, ps->p_tree); - printf("\n"); - printf("Tokens:\n"); - showtree(ps->p_grammar, ps->p_tree); - printf("\n"); - } - printf("Listing:\n"); - PyNode_ListTree(ps->p_tree); - printf("\n"); -} - #endif /* Py_DEBUG */ /*