diff --git a/valuescript_compiler/src/function_compiler.rs b/valuescript_compiler/src/function_compiler.rs index 7adf12a..6447291 100644 --- a/valuescript_compiler/src/function_compiler.rs +++ b/valuescript_compiler/src/function_compiler.rs @@ -8,7 +8,7 @@ use crate::asm::{ Builtin, Definition, DefinitionContent, FnLine, Function, Instruction, Label, Pointer, Register, Value, }; -use crate::diagnostic::{Diagnostic, DiagnosticContainer, DiagnosticLevel, DiagnosticReporter}; +use crate::diagnostic::{Diagnostic, DiagnosticContainer, DiagnosticReporter}; use crate::expression_compiler::CompiledExpression; use crate::expression_compiler::ExpressionCompiler; use crate::ident::Ident; @@ -63,7 +63,6 @@ pub struct CatchSetting { pub struct FunctionCompiler<'a> { pub mc: &'a mut ModuleCompiler, pub current: Function, - pub definitions: Vec, pub owner_id: OwnerId, pub reg_allocator: RegAllocator, pub label_allocator: NameAllocator, @@ -73,13 +72,11 @@ pub struct FunctionCompiler<'a> { pub end_label: Option