mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Remove some dead code
This commit is contained in:
parent
059c324268
commit
736645cd8c
1 changed files with 0 additions and 11 deletions
|
@ -1147,17 +1147,6 @@ fn unify_shared_tags_merge_new(
|
||||||
merge(subs, ctx, Structure(flat_type))
|
merge(subs, ctx, Structure(flat_type))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Is the given variable a structure. Does not consider Attr itself a structure, and instead looks
|
|
||||||
/// into it.
|
|
||||||
#[allow(dead_code)]
|
|
||||||
fn is_structure(var: Variable, subs: &mut Subs) -> bool {
|
|
||||||
match subs.get_content_without_compacting(var) {
|
|
||||||
Content::Alias(_, _, actual, _) => is_structure(*actual, subs),
|
|
||||||
Content::Structure(_) => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn unify_flat_type(
|
fn unify_flat_type(
|
||||||
subs: &mut Subs,
|
subs: &mut Subs,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue