Remove unneeded code now that result code is deferred.
authorRobert Bradshaw <robertwb@math.washington.edu>
Tue, 23 Sep 2008 20:54:16 +0000 (13:54 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Tue, 23 Sep 2008 20:54:16 +0000 (13:54 -0700)
Cython/Compiler/Optimize.py

index 000b12ade006288dd84ffa38e267820c6afcbc8a..1d7d351aaaf52a788bc47d542286735a8a65e0aa 100644 (file)
@@ -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