Commit 3b8250f6 authored by Stefan Behnel's avatar Stefan Behnel

remove unused code

parent fb5e8683
...@@ -3392,16 +3392,6 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations): ...@@ -3392,16 +3392,6 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
return node.else_clause return node.else_clause
return node return node
def _find_genexpr_yield_stat(self, node):
body_node_types = (Nodes.ForInStatNode, Nodes.IfStatNode)
while isinstance(node, body_node_types):
node = node.body
if isinstance(node, Nodes.ExprStatNode):
expr = node.expr
if isinstance(expr, ExprNodes.YieldExprNode):
return node
return None
def visit_ExprStatNode(self, node): def visit_ExprStatNode(self, node):
self.visitchildren(node) self.visitchildren(node)
# drop unused constant expressions # drop unused constant expressions
......
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