Skip to content
Snippets Groups Projects
Commit 3d582115 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Removed useless constructor.

parent cf46a693
No related branches found
No related tags found
No related merge requests found
......@@ -9,13 +9,6 @@ import reaching_definitions
class Program(Block):
def __init__(self, statements):
"""Start with a given statement list."""
Block.__init__(self, statements)
def __iter__(self):
return iter(self.blocks)
def __len__(self):
"""Get the number of statements in the program."""
return len(self.statements) if hasattr(self, 'statements') \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment