From 11597d64b44d4e58f889dd943274db4f55d818aa Mon Sep 17 00:00:00 2001 From: Alex Kristiansen Date: Thu, 26 Oct 2023 17:33:19 -0700 Subject: [PATCH] remove old metadata handler --- libkirum/src/kirum.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libkirum/src/kirum.rs b/libkirum/src/kirum.rs index 13eaa86..fc35858 100644 --- a/libkirum/src/kirum.rs +++ b/libkirum/src/kirum.rs @@ -225,14 +225,6 @@ impl LanguageTree { lex_idx = Some(self.graph.add_node(lex)); } - // trickle down metadata - let ety_metadata = &self.graph[ety_idx.unwrap()].historical_metadata; - if !ety_metadata.is_empty() { - let mut new = ety_metadata.clone(); - new.extend(self.graph[lex_idx.unwrap()].historical_metadata.iter().map(|(k, v)| (k.clone(), v.clone()))); - self.graph[lex_idx.unwrap()].historical_metadata = new; - } - self.graph.add_edge(ety_idx.unwrap(), lex_idx.unwrap(), TreeEtymology { transforms: trans, intermediate_word: None, agglutination_order }); }