gh-124013: remove _PyCompile_IsTopLevelAwait (#124014)

This commit is contained in:
Irit Katriel 2024-09-12 19:58:32 +01:00 committed by GitHub
parent b2afe2aae4
commit 8145ebea58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 29 deletions

View file

@ -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)