Commit 0dbb7ca3 authored by Stefan Behnel's avatar Stefan Behnel

fix build by removing unused code

parent 6450b6df
...@@ -106,16 +106,14 @@ class ControlFlow(object): ...@@ -106,16 +106,14 @@ class ControlFlow(object):
entries set tracked entries entries set tracked entries
loops list stack for loop descriptors loops list stack for loop descriptors
exceptions list stack for exception descriptors exceptions list stack for exception descriptors
outer_flow ControlFlow the ControlFlow instance of the outer closure
""" """
def __init__(self, outer_flow=None): def __init__(self):
self.blocks = set() self.blocks = set()
self.entries = set() self.entries = set()
self.loops = [] self.loops = []
self.exceptions = [] self.exceptions = []
self.outer_flow = outer_flow
self.entry_point = ControlBlock() self.entry_point = ControlBlock()
self.exit_point = ExitBlock() self.exit_point = ExitBlock()
self.blocks.add(self.exit_point) self.blocks.add(self.exit_point)
...@@ -661,7 +659,7 @@ class ControlFlowAnalysis(CythonTransform): ...@@ -661,7 +659,7 @@ class ControlFlowAnalysis(CythonTransform):
self.env_stack.append(self.env) self.env_stack.append(self.env)
self.env = node.local_scope self.env = node.local_scope
self.stack.append(self.flow) self.stack.append(self.flow)
self.flow = ControlFlow(self.flow) self.flow = ControlFlow()
# Collect all entries # Collect all entries
for entry in node.local_scope.entries.values(): for entry in node.local_scope.entries.values():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment