summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2024-09-12 18:58:32 (GMT)
committerGitHub <noreply@github.com>2024-09-12 18:58:32 (GMT)
commit8145ebea587284db3be3f152ee0298952977d6f4 (patch)
tree1e636a9a54228474a6889f43bd59a88d77693a1d /Python/compile.c
parentb2afe2aae487ebf89897e22c01d9095944fd334f (diff)
downloadcpython-8145ebea587284db3be3f152ee0298952977d6f4.zip
cpython-8145ebea587284db3be3f152ee0298952977d6f4.tar.gz
cpython-8145ebea587284db3be3f152ee0298952977d6f4.tar.bz2
gh-124013: remove _PyCompile_IsTopLevelAwait (#124014)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 72399c7..d54c320 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1242,15 +1242,6 @@ _PyCompile_Metadata(compiler *c)
return &c->u->u_metadata;
}
-#ifndef NDEBUG
-int
-_PyCompile_IsTopLevelAwait(compiler *c)
-{
- return c->c_flags.cf_flags & PyCF_ALLOW_TOP_LEVEL_AWAIT &&
- c->u->u_ste->ste_type == ModuleBlock;
-}
-#endif
-
// Merge *obj* with constant cache, without recursion.
int
_PyCompile_ConstCacheMergeOne(PyObject *const_cache, PyObject **obj)