From 314f875383877e72d3ae9b2e344e4f543d60c990 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan_ml@behnel.de>
Date: Wed, 30 Sep 2015 14:33:03 +0200
Subject: [PATCH] remove dead code in Plex

---
 Cython/Plex/Machines.py | 19 ++-----------------
 1 file changed, 2 insertions(+), 17 deletions(-)

diff --git a/Cython/Plex/Machines.py b/Cython/Plex/Machines.py
index 973d9ee72..398850976 100644
--- a/Cython/Plex/Machines.py
+++ b/Cython/Plex/Machines.py
@@ -147,24 +147,9 @@ class FastMachine(object):
         '': None, 'bol': None, 'eol': None, 'eof': None, 'else': None
     }
 
-    def __init__(self, old_machine=None):
-        self.initial_states = initial_states = {}
+    def __init__(self):
+        self.initial_states = {}
         self.states = []
-        if old_machine:
-            self.old_to_new = old_to_new = {}
-            for old_state in old_machine.states:
-                new_state = self.new_state()
-                old_to_new[old_state] = new_state
-            for name, old_state in old_machine.initial_states.items():
-                initial_states[name] = old_to_new[old_state]
-            for old_state in old_machine.states:
-                new_state = old_to_new[old_state]
-                for event, old_state_set in old_state.transitions.items():
-                    if old_state_set:
-                        new_state[event] = old_to_new[old_state_set.keys()[0]]
-                    else:
-                        new_state[event] = None
-                new_state['action'] = old_state.action
 
     def __del__(self):
         for state in self.states:
-- 
2.30.9