From 123003dbe74198749471c8defaec24bf2474b5ec Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Tue, 23 Sep 2008 13:54:16 -0700 Subject: [PATCH] Remove unneeded code now that result code is deferred. --- Cython/Compiler/Optimize.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 000b12ad..1d7d351a 100644 --- a/Cython/Compiler/Optimize.py +++ b/Cython/Compiler/Optimize.py @@ -171,11 +171,4 @@ class FinalOptimizePhase(Visitor.CythonTransform): node.function.type = node.function.entry.type PyTypeObjectPtr = PyrexTypes.CPtrType(object_module.lookup('PyTypeObject').type) node.args[1] = ExprNodes.CastNode(node.args[1], PyTypeObjectPtr) - # Remove when result_code stuff is put in its proper place... - node.function.result_code = node.function.entry.cname - node.args[1].result_code = node.args[1].arg.result_as(PyTypeObjectPtr) - if node.is_temp: - node.allocate_temp(None, node.result_code) - else: - node.allocate_temp(None) return node -- 2.26.2