From 64f21977b27cb6e02a6ec03147223bc86ba2d2fc Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 4 Oct 2009 13:54:55 +0200 Subject: [PATCH] cleanup --- Cython/Compiler/Optimize.py | 6 ------ 1 file changed, 6 deletions(-) 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, -- 2.26.2