From 9acdf1e707d2a9d8d4eea6b7068cc49f25d7f717 Mon Sep 17 00:00:00 2001 From: Christian Egli Date: Wed, 27 Mar 2024 09:26:51 +0100 Subject: [PATCH] Remove dead code --- src/translator/trie.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/translator/trie.rs b/src/translator/trie.rs index bfeb65b..495afb2 100644 --- a/src/translator/trie.rs +++ b/src/translator/trie.rs @@ -55,18 +55,6 @@ impl Trie { } } - // pub fn insert(&mut self, word: &str, translation: Translation) { - // let mut current_node = &mut self.root; - - // for c in word.chars() { - // current_node = current_node - // .transitions - // .entry(Transition::Character(c)) - // .or_default(); - // } - // current_node.translation = Some(translation); - // } - pub fn insert( &mut self, word: &str,