Removed useless left() function.

parent 76b5ebee
...@@ -72,18 +72,6 @@ class ExpressionBase(object): ...@@ -72,18 +72,6 @@ class ExpressionBase(object):
def clone(self): def clone(self):
return copy.deepcopy(self) return copy.deepcopy(self)
def left(self):
"""
Return the left-most child of this node. When this instance is a leaf,
the leaf will be returned.
"""
node = self
while not node.is_leaf:
node = node[0]
return node
def __lt__(self, other): def __lt__(self, other):
""" """
Comparison between this expression{node,leaf} and another Comparison between this expression{node,leaf} and another
......
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