From 11c96d3085f7b467d1306adc5a2bc6ca4d398ef6 Mon Sep 17 00:00:00 2001 From: xunilrj Date: Sun, 4 Aug 2024 16:39:26 +0100 Subject: [PATCH] removing uncecessary log --- sway-core/src/ir_generation/function.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/sway-core/src/ir_generation/function.rs b/sway-core/src/ir_generation/function.rs index 7224d4f82ce..9e6a265b589 100644 --- a/sway-core/src/ir_generation/function.rs +++ b/sway-core/src/ir_generation/function.rs @@ -2339,23 +2339,6 @@ impl<'eng> FnCompiler<'eng> { self.compile_expression_to_value(context, md_mgr, end)? ); - let return_type = Type::get_unit(context); - self.current_block.append(context).asm_block( - vec![ - AsmArg { - name: Ident::new_no_span("end".into()), - initializer: Some(end), - }, - AsmArg { - name: Ident::new_no_span("start".into()), - initializer: Some(start), - }, - ], - vec![AsmInstruction::log_no_span("end", "start", "end", "start")], - return_type, - None, - ); - let slice_len = self .current_block .append(context)