summaryrefslogtreecommitdiffstats
path: root/Python/ast_opt.c
diff options
context:
space:
mode:
authorBatuhan Taşkaya <47358913+isidentical@users.noreply.github.com>2020-03-04 16:16:47 (GMT)
committerGitHub <noreply@github.com>2020-03-04 16:16:46 (GMT)
commitd82e469048e0e034d8c0020cd33b733be1adf68b (patch)
tree169c91ab5f25d4f8e0b9ceb8a4c9800428cf82b7 /Python/ast_opt.c
parent702e09fd0ad72b248b5adfa0fcfdb58600be77f6 (diff)
downloadcpython-d82e469048e0e034d8c0020cd33b733be1adf68b.zip
cpython-d82e469048e0e034d8c0020cd33b733be1adf68b.tar.gz
cpython-d82e469048e0e034d8c0020cd33b733be1adf68b.tar.bz2
bpo-39639: Remove the AST "Suite" node and associated code (GH-18513)
The AST "Suite" node is no longer used and it can be removed from the ASDL definition and related structures (compiler, visitors, ...). Co-Authored-By: Victor Stinner <vstinner@python.org> Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Python/ast_opt.c')
-rw-r--r--Python/ast_opt.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/ast_opt.c b/Python/ast_opt.c
index f2a2c25..39e164a 100644
--- a/Python/ast_opt.c
+++ b/Python/ast_opt.c
@@ -462,9 +462,6 @@ astfold_mod(mod_ty node_, PyArena *ctx_, int optimize_)
case Expression_kind:
CALL(astfold_expr, expr_ty, node_->v.Expression.body);
break;
- case Suite_kind:
- CALL_SEQ(astfold_stmt, stmt_ty, node_->v.Suite.body);
- break;
default:
break;
}