mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Drop unused BinOp type
This commit is contained in:
parent
4611211d34
commit
46758e1209
2 changed files with 0 additions and 17 deletions
|
@ -115,15 +115,6 @@ fn type_to_variable<'a>(subs: &'a mut Subs, typ: Type) -> Variable {
|
|||
|
||||
subs.fresh(Descriptor::from(content))
|
||||
}
|
||||
BinOp(box_type) => {
|
||||
let op_type = *box_type;
|
||||
let l_var = type_to_variable(subs, op_type.left);
|
||||
let r_var = type_to_variable(subs, op_type.right);
|
||||
let ret_var = type_to_variable(subs, op_type.ret);
|
||||
let content = Content::Structure(FlatType::BinOp(l_var, r_var, ret_var));
|
||||
|
||||
subs.fresh(Descriptor::from(content))
|
||||
}
|
||||
Erroneous(problem) => {
|
||||
let content = Content::Structure(FlatType::Erroneous(problem));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue