cleanup
authorStefan Behnel <scoder@users.berlios.de>
Sun, 4 Oct 2009 11:54:55 +0000 (13:54 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 4 Oct 2009 11:54:55 +0000 (13:54 +0200)
Cython/Compiler/Optimize.py

index 612cc8f0215dc46db4b31806de6fbe4ba0b27ad9..2d21584b6f21f66e2f5357fed34390964021d196 100644 (file)
@@ -897,12 +897,6 @@ class OptimizeBuiltinCalls(Visitor.VisitorTransform):
                         self.PyUnicode_AsXyzString_func_type,
                         'encode', is_unbound_method, [string_node])
 
-            return self._substitute_method_call(
-                node, "PyUnicode_AsEncodedString",
-                self.PyUnicode_AsEncodedString_func_type,
-                'encode', is_unbound_method,
-                [string_node, encoding_node, null_node])
-
         return self._substitute_method_call(
             node, "PyUnicode_AsEncodedString",
             self.PyUnicode_AsEncodedString_func_type,