From 2b482109af6398a8fd9273761c324882495f166f Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 2 Oct 2021 12:19:19 -0400 Subject: [PATCH] [automaton] remove defunct fill_in_numerics --- src/lib/automaton.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/lib/automaton.c b/src/lib/automaton.c index 1eae01a52..a062aad83 100644 --- a/src/lib/automaton.c +++ b/src/lib/automaton.c @@ -203,19 +203,6 @@ link_kleene(automaton* a, esctrie* e, unsigned follow){ return esctrie_from_idx(a, e->trie[follow]); } -/*static void -fill_in_numerics(automaton* a, esctrie* e, esctrie* targ, unsigned follow, esctrie* efollow){ - // fill in all NULL numeric links with the new target - for(int i = '0' ; i <= '9' ; ++i){ - if(e->trie[i] == 0){ - e->trie[i] = esctrie_idx(a, targ); - }else if(e->trie[i] != esctrie_idx(a, e)){ - fill_in_numerics(a, esctrie_from_idx(a, e->trie[i]), targ, follow, efollow); - } - } - e->trie[follow] = esctrie_idx(a, efollow); -}*/ - // phase 1 of the numeric algorithm; find a φ node on e. not sure what // to do if we have non-φ links at every digit...punt for now FIXME. static inline esctrie*