projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb5e868
)
remove unused code
author
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 8 Dec 2013 10:17:00 +0000
(11:17 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 8 Dec 2013 10:17:00 +0000
(11:17 +0100)
Cython/Compiler/Optimize.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Optimize.py
b/Cython/Compiler/Optimize.py
index
d1a53d6
..
b558657
100644
(file)
--- a/
Cython/Compiler/Optimize.py
+++ b/
Cython/Compiler/Optimize.py
@@
-3392,16
+3392,6
@@
class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
return node.else_clause
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):
self.visitchildren(node)
# drop unused constant expressions