From 42718de04b6ab9d293fa9a6dfb5f51a70f5da3d3 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 8 Sep 2010 11:40:27 +0200 Subject: [PATCH] removed dead legacy code --- Cython/Compiler/Main.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index 208b575c..a22f3510 100644 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -109,15 +109,6 @@ class Context(object): from Buffer import IntroduceBufferAuxiliaryVars from ModuleNode import check_c_declarations, check_c_declarations_pxd - # Temporary hack that can be used to ensure that all result_code's - # are generated at code generation time. - import Visitor - class ClearResultCodes(Visitor.CythonTransform): - def visit_ExprNode(self, node): - self.visitchildren(node) - node.result_code = "" - return node - if pxd: _check_c_declarations = check_c_declarations_pxd _specific_post_parse = PxdPostParse(self) @@ -158,7 +149,6 @@ class Context(object): DropRefcountingTransform(), FinalOptimizePhase(self), GilCheck(), - #ClearResultCodes(self), ] def create_pyx_pipeline(self, options, result, py=False): -- 2.26.2