Clean up some obsolete asserts

This commit is contained in:
Richard Feldman 2023-12-11 15:15:59 -05:00
parent d2d87949c8
commit 67d7385b9a
No known key found for this signature in database
GPG key ID: CBD53FB13784937E

View file

@ -4464,7 +4464,6 @@ fn expose_function_to_host_help_c_abi_generic<'a, 'ctx>(
}
let call_result = if env.mode.returns_roc_result() {
assert!(false);
if args.len() == roc_function.get_params().len() {
let arguments_for_call = &arguments_for_call.into_bump_slice();
@ -4488,7 +4487,6 @@ fn expose_function_to_host_help_c_abi_generic<'a, 'ctx>(
arguments_for_call,
)
} else {
assert!(false);
debug_assert_eq!(args.len() + 1, roc_function.get_params().len());
arguments_for_call.push(args[0]);