From 80979dea2e4e4a1d1914d08bc6ab62c98f077f41 Mon Sep 17 00:00:00 2001 From: SharafMohamed Date: Wed, 11 Dec 2024 15:15:04 -0500 Subject: [PATCH] Remove old epsilon_closure after double checking it matches the moved one in case merging caused issues. --- src/log_surgeon/Lexer.tpp | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/log_surgeon/Lexer.tpp b/src/log_surgeon/Lexer.tpp index ef7834d..9a176ae 100644 --- a/src/log_surgeon/Lexer.tpp +++ b/src/log_surgeon/Lexer.tpp @@ -389,30 +389,6 @@ void Lexer::generate() { } } } - for (auto const* dest_state : current_state->get_epsilon_transitions()) { - stack.push(dest_state); - } - - // TODO: currently treat tagged transitions as epsilon transitions - for (auto const& positive_tagged_start_transition : - current_state->get_positive_tagged_start_transitions()) - { - stack.push(positive_tagged_start_transition.get_dest_state()); - } - auto const& optional_positive_tagged_end_transition - = current_state->get_positive_tagged_end_transition(); - if (optional_positive_tagged_end_transition.has_value()) { - stack.push(optional_positive_tagged_end_transition.value().get_dest_state()); - } - - auto const& optional_negative_tagged_transition - = current_state->get_negative_tagged_transition(); - if (optional_negative_tagged_transition.has_value()) { - stack.push(optional_negative_tagged_transition.value().get_dest_state()); - } - } - return closure_set; -} template auto Lexer::nfa_to_dfa(finite_automata::Nfa& nfa