From 22887678bdcf6f346bf4723c1c682d0feb90c668 Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 10 Sep 2019 03:35:11 -0700 Subject: [PATCH] Remove lookup_by_name --- schala-lang/language/src/symbol_table.rs | 11 ----------- 1 file changed, 11 deletions(-) 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) }