mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Remove unused RuntimeErrorFunction variant from roc_mono::ir::Expr
This commit is contained in:
parent
dcb6c543c0
commit
75f13d3f2e
9 changed files with 4 additions and 27 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue