1
Fork 0

Remove unused functions from ast CoroutineKind

This commit is contained in:
Michael Goulet 2024-09-11 18:52:36 -04:00
parent 594de02cba
commit 8dc227866f
2 changed files with 11 additions and 9 deletions

View file

@ -2610,14 +2610,6 @@ impl CoroutineKind {
}
}
pub fn is_async(self) -> bool {
matches!(self, CoroutineKind::Async { .. })
}
pub fn is_gen(self) -> bool {
matches!(self, CoroutineKind::Gen { .. })
}
pub fn closure_id(self) -> NodeId {
match self {
CoroutineKind::Async { closure_id, .. }