]> granicus.if.org Git - re2c/commitdiff
Removed dead code.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 10 Mar 2015 16:01:15 +0000 (16:01 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 10 Mar 2015 16:01:15 +0000 (16:01 +0000)
re2c/code.cc
re2c/dfa.h

index 83454a586e6667746a8c8b2b3faa9a0236ddbf38..202fb025d2e935079a626669a83ce17068db24af 100644 (file)
@@ -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
index 3ae6f42b81696c3ffba0c12e455c80f0ed8c6c78..1d69da9483934eee02e6baf75f2232c5d0b30220 100644 (file)
@@ -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*);
 };