diff --git a/src/compile.rs b/src/compile.rs index 2ad1e51..1fc4bdd 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -1,7 +1,4 @@ -use std::{ - collections::{HashMap, HashSet}, - num::IntErrorKind, -}; +use std::collections::{HashMap, HashSet}; use crate::{ ast::{ @@ -1097,8 +1094,6 @@ fn compile_function_call( instructions.push(PreInstr::Instr(Instruction::MoveRetValues(last_reg))); } - let last_param_reg = param_regs.last().unwrap_or(&function_reg); - let mut return_regs = Vec::new(); if let Some(expected_values) = expected_values { for i in 0..expected_values {