Commit 49bd430f authored by Taddeus Kroes's avatar Taddeus Kroes

Removed useless length check.

parent 6dd921a7
...@@ -72,12 +72,9 @@ def create_in_out(blocks): ...@@ -72,12 +72,9 @@ def create_in_out(blocks):
# Start by analyzing the exit points # Start by analyzing the exit points
work_list = set() work_list = set()
if len(blocks) == 1: for b in blocks:
work_list.add(blocks[0]) if b.edges_from and not b.edges_to:
else: work_list.add(b)
for b in blocks:
if b.edges_from and not b.edges_to:
work_list.add(b)
while len(work_list): while len(work_list):
b = work_list.pop() b = work_list.pop()
......
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