Răsfoiți Sursa

Removed useless left() function.

Sander Mathijs van Veen 14 ani în urmă
părinte
comite
d75fb60393
1 a modificat fișierele cu 0 adăugiri și 12 ștergeri
  1. 0 12
      src/node.py

+ 0 - 12
src/node.py

@@ -72,18 +72,6 @@ class ExpressionBase(object):
     def clone(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):
         """
         Comparison between this expression{node,leaf} and another