summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
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)