diff --git a/schala-lang/language/src/symbol_table.rs b/schala-lang/language/src/symbol_table.rs index 46044bf..ffef870 100644 --- a/schala-lang/language/src/symbol_table.rs +++ b/schala-lang/language/src/symbol_table.rs @@ -99,17 +99,6 @@ impl SymbolTable { self.symbol_path_to_symbol.insert(fully_qualified_name, symbol); } - pub fn lookup_by_name(&self, name: &Rc) -> Option<&Symbol> { - let vec = vec![ - ScopeSegment { - name: name.clone(), - kind: ScopeSegmentKind::Terminal, - } - ]; - let symbol_path = FullyQualifiedSymbolName(vec); - self.lookup_by_fqsn(&symbol_path) - } - pub fn lookup_by_fqsn(&self, fully_qualified_path: &FullyQualifiedSymbolName) -> Option<&Symbol> { self.symbol_path_to_symbol.get(fully_qualified_path) }