Remove obsolete ListLenUsize

This commit is contained in:
Richard Feldman 2024-02-16 20:39:09 -05:00
parent 762f52b714
commit 87d4760356
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
16 changed files with 29 additions and 64 deletions

View file

@ -607,7 +607,7 @@ pub(crate) fn run_low_level<'a, 'ctx>(
bitcode::STR_WITH_CAPACITY,
)
}
ListLenU64 => {
ListLen => {
// List.len : List * -> U64
arguments!(list);
@ -618,12 +618,6 @@ pub(crate) fn run_low_level<'a, 'ctx>(
.new_build_int_cast(len_usize, env.context.i64_type(), "usize_to_u64")
.into()
}
ListLenUsize => {
// List.lenUsize : List * -> usize # used internally, not exposed
arguments!(list);
list_len_usize(env.builder, list.into_struct_value()).into()
}
ListGetCapacity => {
// List.capacity: List a -> U64
arguments!(list);