From: Ulya Trofimovich Date: Tue, 10 Mar 2015 16:01:15 +0000 (+0000) Subject: Removed dead code. X-Git-Tag: 0.15~361 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc9435cf74fb9b50ccb56822ff4f530c48f26c84;p=re2c Removed dead code. --- diff --git a/re2c/code.cc b/re2c/code.cc index 83454a58..202fb025 100644 --- a/re2c/code.cc +++ b/re2c/code.cc @@ -108,26 +108,7 @@ static std::string space(uint this_label) return std::string(std::max(1, nl - tl + 1), ' '); } -/* -void Go::compact() -{ - // arrange so that adjacent spans have different targets - uint i = 0; - - for (uint j = 1; j < nSpans; ++j) - { - if (span[j].to != span[i].to) - { - ++i; - span[i].to = span[j].to; - } - - span[i].ub = span[j].ub; - } - nSpans = i + 1; -} -*/ /* * Find all spans, that map to the given state. For each of them, * find upper adjacent span, that maps to another state (if such diff --git a/re2c/dfa.h b/re2c/dfa.h index 3ae6f42b..1d69da94 100644 --- a/re2c/dfa.h +++ b/re2c/dfa.h @@ -193,7 +193,6 @@ public: void genSwitch(OutputFile &, uint ind, const State *from, const State *next, bool &readCh, uint mask) const; void genCpGoto(OutputFile &, uint ind, const State *from, const State *next, bool &readCh) const; std::string genGotoProlog(OutputFile & o, uint ind, const State *from, const State *next, bool &readCh) const; - void compact(); void unmap(Go*, const State*); };