Skip to content

Commit

Permalink
remove old metadata handler
Browse files Browse the repository at this point in the history
  • Loading branch information
fearful-symmetry committed Oct 27, 2023
1 parent 46d901e commit 11597d6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions libkirum/src/kirum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

}
Expand Down

0 comments on commit 11597d6

Please sign in to comment.