From 6f693875c14e6a87c240c52640abb50e61722876 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 8 May 2010 17:59:29 +0200 Subject: [PATCH] removed dead code --- Cython/Compiler/ParseTreeTransforms.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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. -- 2.26.2