From: Stefan Behnel Date: Sun, 4 Oct 2009 11:54:55 +0000 (+0200) Subject: cleanup X-Git-Tag: 0.12.alpha0~182^2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=64f21977b27cb6e02a6ec03147223bc86ba2d2fc;p=cython.git cleanup --- diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 612cc8f0..2d21584b 100644 --- a/Cython/Compiler/Optimize.py +++ b/Cython/Compiler/Optimize.py @@ -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,