Remove unused functions from ast CoroutineKind
This commit is contained in:
parent
594de02cba
commit
8dc227866f
2 changed files with 11 additions and 9 deletions
|
@ -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, .. }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue