diff --git a/schala-lang/language/src/ast/operators.rs b/schala-lang/language/src/ast/operators.rs index 5b14d6a..0e3f2b0 100644 --- a/schala-lang/language/src/ast/operators.rs +++ b/schala-lang/language/src/ast/operators.rs @@ -68,10 +68,6 @@ impl BinOp { let s = token_kind_to_sigil(op_tok)?; Some(binop_precedences(s)) } - - pub fn get_precedence(&self) -> i32 { - binop_precedences(&self.sigil) - } } fn token_kind_to_sigil<'a>(tok: &'a TokenKind) -> Option<&'a str> { diff --git a/schala-lang/language/src/eval/test.rs b/schala-lang/language/src/eval/test.rs index c3971b4..d361286 100644 --- a/schala-lang/language/src/eval/test.rs +++ b/schala-lang/language/src/eval/test.rs @@ -3,7 +3,6 @@ use std::cell::RefCell; use std::rc::Rc; -use crate::source_map::SourceMap; use crate::symbol_table::SymbolTable; use crate::scope_resolution::ScopeResolver; use crate::reduced_ast::reduce; diff --git a/schala-lang/language/src/schala.rs b/schala-lang/language/src/schala.rs index 8d7ed48..68d42fa 100644 --- a/schala-lang/language/src/schala.rs +++ b/schala-lang/language/src/schala.rs @@ -11,7 +11,6 @@ ComputationRequest, ComputationResponse, LangMetaRequest, LangMetaResponse, GlobalOutputStats, DebugResponse, DebugAsk}; use crate::{ast, reduced_ast, tokenizing, parsing, eval, typechecking, symbol_table, source_map}; -use source_map::SourceMap; pub type SymbolTableHandle = Rc>; pub type SourceMapHandle = Rc>; diff --git a/schala-lang/language/src/symbol_table/test.rs b/schala-lang/language/src/symbol_table/test.rs index 7f69c87..949d825 100644 --- a/schala-lang/language/src/symbol_table/test.rs +++ b/schala-lang/language/src/symbol_table/test.rs @@ -4,7 +4,6 @@ use std::rc::Rc; use super::*; use crate::util::quick_ast; -use crate::source_map; fn add_symbols_from_source(src: &str) -> (SymbolTable, Result<(), String>) { let (ast, source_map) = quick_ast(src); diff --git a/schala-lang/language/src/typechecking.rs b/schala-lang/language/src/typechecking.rs index 0284806..9db2fc2 100644 --- a/schala-lang/language/src/typechecking.rs +++ b/schala-lang/language/src/typechecking.rs @@ -14,6 +14,7 @@ pub struct TypeData { } impl TypeData { + #[allow(dead_code)] pub fn new() -> TypeData { TypeData { ty: None } }