From: Ulya Trofimovich Date: Sun, 5 Apr 2015 14:39:29 +0000 (+0100) Subject: Removed useless type of DFA state. X-Git-Tag: 0.15~317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30806635b56cb48000d913a14ade372ba253e00c;p=re2c Removed useless type of DFA state. 'Enter' was encapsulated by 'Initial' and never used on its own. --- diff --git a/re2c/code.cc b/re2c/code.cc index 7e5e739b..a52730ee 100644 --- a/re2c/code.cc +++ b/re2c/code.cc @@ -332,31 +332,6 @@ void Match::emit(Output & output, uint ind, bool &readCh, const std::string&) co } } -void Enter::emit(Output & output, uint ind, bool &readCh, const std::string&) const -{ - OutputFile & o = output.source; - - if (state->link) - { - o << input_api.stmt_skip (ind); - if (vUsedLabels.count(label)) - { - o << labelPrefix << label << ":\n"; - } - need(o, ind, state->depth, readCh, false); - } - else - { - /* we shouldn't need 'rule-following' protection here */ - o << input_api.stmt_skip_peek (ind); - if (vUsedLabels.count(label)) - { - o << labelPrefix << label << ":\n"; - } - readCh = false; - } -} - void Initial::emit(Output & output, uint ind, bool &readCh, const std::string&) const { OutputFile & o = output.source; @@ -1137,7 +1112,6 @@ static void generate_data (State * s, bool def, const std::vector