Remove unused EmptyTuple variant from FlatType enum

This commit is contained in:
JRI98 2024-10-22 16:29:53 +01:00
parent fe029c85b6
commit edd0bb553d
No known key found for this signature in database
GPG key ID: F83B29916FF13F24
22 changed files with 34 additions and 111 deletions

View file

@ -10136,7 +10136,6 @@ fn find_lambda_sets_help(
}
}
FlatType::EmptyRecord => {}
FlatType::EmptyTuple => {}
FlatType::EmptyTagUnion => {}
},
Content::Alias(_, _, actual, _) => {

View file

@ -2191,7 +2191,7 @@ fn lambda_set_size(subs: &Subs, var: Variable) -> (usize, usize, usize) {
}
stack.push((ext.var(), depth_any + 1, depth_lset));
}
FlatType::EmptyRecord | FlatType::EmptyTuple | FlatType::EmptyTagUnion => {}
FlatType::EmptyRecord | FlatType::EmptyTagUnion => {}
},
Content::FlexVar(_)
| Content::RigidVar(_)
@ -3459,7 +3459,6 @@ fn layout_from_flat_type<'a>(
}
EmptyTagUnion => cacheable(Ok(Layout::VOID)),
EmptyRecord => cacheable(Ok(Layout::UNIT)),
EmptyTuple => cacheable(Ok(Layout::UNIT)),
}
}