Remove unused RuntimeErrorFunction variant from roc_mono::ir::Expr

This commit is contained in:
JRI98 2024-11-28 16:01:31 +00:00
parent dcb6c543c0
commit 75f13d3f2e
No known key found for this signature in database
GPG key ID: F83B29916FF13F24
9 changed files with 4 additions and 27 deletions

View file

@ -1070,7 +1070,6 @@ fn expr_contains_symbol(expr: &Expr, needle: Symbol) -> bool {
}),
Expr::EmptyArray => false,
Expr::Reset { symbol, .. } | Expr::ResetRef { symbol, .. } => needle == *symbol,
Expr::RuntimeErrorFunction(_) => false,
Expr::ErasedMake { value, callee } => {
value.map(|v| v == needle).unwrap_or(false) || needle == *callee
}