From 30806635b56cb48000d913a14ade372ba253e00c Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Sun, 5 Apr 2015 15:39:29 +0100 Subject: [PATCH] Removed useless type of DFA state. 'Enter' was encapsulated by 'Initial' and never used on its own. --- re2c/code.cc | 26 -------------------------- re2c/dfa.h | 19 ++----------------- 2 files changed, 2 insertions(+), 43 deletions(-) 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