From: Stefan Behnel Date: Sat, 8 May 2010 15:59:29 +0000 (+0200) Subject: removed dead code X-Git-Tag: 0.13.beta0~2^2~76 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6f693875c14e6a87c240c52640abb50e61722876;p=cython.git removed dead code --- diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index 6d9f8e69..61b0ec68 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -1205,10 +1205,8 @@ class MarkClosureVisitor(CythonTransform): self.visitchildren(node) self.needs_closure = True return node - - def visit_YieldNode(self, node): - self.needs_closure = True - + + class CreateClosureClasses(CythonTransform): # Output closure classes in module scope for all functions # that need it.