From 8b5e965f1604506a1838c0e2d13f0d9a34fc11b4 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Tue, 2 Nov 2021 18:58:08 -0700 Subject: [PATCH] Remove old code --- schala-lang/language/src/symbol_table/mod.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/schala-lang/language/src/symbol_table/mod.rs b/schala-lang/language/src/symbol_table/mod.rs index 32fbfc5..dda85e8 100644 --- a/schala-lang/language/src/symbol_table/mod.rs +++ b/schala-lang/language/src/symbol_table/mod.rs @@ -151,7 +151,7 @@ pub struct SymbolTable { impl SymbolTable { pub fn new() -> SymbolTable { - let mut table = SymbolTable { + let table = SymbolTable { def_id_store: IdStore::new(), symbol_trie: SymbolTrie::new(), fq_names: NameTable::new(), @@ -161,7 +161,6 @@ impl SymbolTable { def_to_symbol: HashMap::new(), }; - table.populate_builtins(); table } @@ -224,15 +223,6 @@ impl SymbolTable { self.def_to_symbol.insert(def_id, symbol); } - fn populate_builtins(&mut self) { - /* - let fqsn = Fqsn::from_strs(&["println"]); - self.populate_single_builtin(fqsn, Builtin::IOPrintLn); - - let fqsn = Fqsn::from_strs(&["print"]); - self.populate_single_builtin(fqsn, Builtin::IOPrint); - */ - } } struct SymbolTableRunner<'a> {