mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
chore: dict remove unused vars
This commit is contained in:
parent
fb12715aba
commit
3452037d44
3 changed files with 1 additions and 26 deletions
|
@ -4200,7 +4200,6 @@ fn run_higher_order_low_level<'a, 'ctx, 'env>(
|
|||
|
||||
dict_walk(
|
||||
env,
|
||||
layout_ids,
|
||||
roc_function_call,
|
||||
dict,
|
||||
default,
|
||||
|
|
|
@ -635,7 +635,6 @@ fn dict_intersect_or_difference<'a, 'ctx, 'env>(
|
|||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn dict_walk<'a, 'ctx, 'env>(
|
||||
env: &Env<'a, 'ctx, 'env>,
|
||||
layout_ids: &mut LayoutIds<'a>,
|
||||
roc_function_call: RocFunctionCall<'ctx>,
|
||||
dict: BasicValueEnum<'ctx>,
|
||||
accum: BasicValueEnum<'ctx>,
|
||||
|
@ -660,9 +659,6 @@ pub fn dict_walk<'a, 'ctx, 'env>(
|
|||
|
||||
let output_ptr = builder.build_alloca(accum_bt, "output_ptr");
|
||||
|
||||
let inc_key_fn = build_inc_wrapper(env, layout_ids, key_layout);
|
||||
let inc_value_fn = build_inc_wrapper(env, layout_ids, value_layout);
|
||||
|
||||
call_void_bitcode_fn(
|
||||
env,
|
||||
&[
|
||||
|
@ -676,8 +672,6 @@ pub fn dict_walk<'a, 'ctx, 'env>(
|
|||
layout_width(env, key_layout),
|
||||
layout_width(env, value_layout),
|
||||
layout_width(env, accum_layout),
|
||||
inc_key_fn.as_global_value().as_pointer_value().into(),
|
||||
inc_value_fn.as_global_value().as_pointer_value().into(),
|
||||
env.builder.build_bitcast(output_ptr, u8_ptr, "to_opaque"),
|
||||
],
|
||||
&bitcode::DICT_WALK,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue