Remove takeFirst and takeLast from backend

This commit is contained in:
satotake 2021-11-13 06:03:18 +00:00 committed by GitHub
parent 2e073d57ea
commit 9ec2bc7946
10 changed files with 39 additions and 158 deletions

View file

@ -966,8 +966,6 @@ pub fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[bool] {
// TODO when we have lists with capacity (if ever)
// List.append should own its first argument
ListAppend => arena.alloc_slice_copy(&[owned, owned]),
ListTakeFirst => arena.alloc_slice_copy(&[owned, irrelevant]),
ListTakeLast => arena.alloc_slice_copy(&[owned, irrelevant]),
ListSublist => arena.alloc_slice_copy(&[owned, irrelevant, irrelevant]),
ListDrop => arena.alloc_slice_copy(&[owned, irrelevant]),
ListDropAt => arena.alloc_slice_copy(&[owned, irrelevant]),

View file

@ -100,8 +100,6 @@ enum FirstOrder {
ListLen,
ListGetUnsafe,
ListSet,
ListTakeFirst,
ListTakeLast,
ListSublist,
ListDrop,
ListDropAt,