diff regexParser/transition.cc @ 180:d97bcab546e8 pairPro

implement getNext
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Thu, 24 Dec 2015 17:56:28 +0900
parents 8de9a33f6ae5
children ef798db705e9
line wrap: on
line diff
--- a/regexParser/transition.cc	Wed Dec 23 19:44:48 2015 +0900
+++ b/regexParser/transition.cc	Thu Dec 24 17:56:28 2015 +0900
@@ -38,36 +38,3 @@
     }
     return x0;
 }
-
-TransitionPtr createTransition(CharClassPtr cc, BitVectorPtr state) {
-    TransitionPtr transition = NEW(Transition);
-    transition->condition = cc;
-    transition->condition->nextState = *state;
-    return transition;
-}
-
-TransitionPtr appendTransition0(TransitionPtr x, TransitionPtr y) {
-    TransitionPtr x0 = x;
-    for(;;) {
-        if (x->next == NULL) {
-            x->next = y;
-            return x0;
-        }
-    }
-    return x;
-}
-
-TransitionPtr appendTransition(TransitionPtr x, TransitionPtr y) {
-    TransitionPtr x0 = createTransition(x->condition, &x->condition->nextState);
-    TransitionPtr x1 = x0;
-    for(;;) {
-        if (x->next == NULL) {
-            x1->next = y;
-            return x0;
-        }
-        x = x->next;
-        x1->next = createTransition(x->condition, &x->condition->nextState);
-        x1 = x1->next;
-    }
-    return x0;
-}