diff --git a/src/runtime/internal/keyed-each.ts b/src/runtime/internal/keyed-each.ts index b8e5a1a702..e18ae61770 100644 --- a/src/runtime/internal/keyed-each.ts +++ b/src/runtime/internal/keyed-each.ts @@ -1,17 +1,13 @@ import { transition_in, transition_out } from './transitions'; -export function remove_block_from_lookup(block, lookup) { - lookup.delete(block.key); -} - export function destroy_block(block, lookup) { block.d(1); - remove_block_from_lookup(block, lookup); + lookup.delete(block.key); } export function outro_and_destroy_block(block, lookup) { transition_out(block, 1, () => { - remove_block_from_lookup(block, lookup); + lookup.delete(block.key); }); }