removed dead legacy code
authorStefan Behnel <scoder@users.berlios.de>
Wed, 8 Sep 2010 09:40:27 +0000 (11:40 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 8 Sep 2010 09:40:27 +0000 (11:40 +0200)
Cython/Compiler/Main.py

index 208b575cd8e1239b140953f1ae9ceefe0c1898f5..a22f35106363de9e428cfd7d92d5b28f7fcfd08e 100644 (file)
@@ -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 = "<cleared>"
-                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):