From: Stefan Behnel Date: Fri, 10 Apr 2009 18:50:48 +0000 (+0200) Subject: removed unused code and outdated comment X-Git-Tag: 0.12.alpha0~319 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=02a1df3137d1291e8bc731ef2faa866290bd1237;p=cython.git removed unused code and outdated comment --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index f055c99d..0c4c081f 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -551,11 +551,6 @@ class ExprNode(Node): return None class AtomicExprNode(ExprNode): - # I do not dare to convert NameNode yet. This is now - # ancestor of all former AtomicExprNode except - # NameNode. Should be renamed to AtomicExprNode - # when done. - # Abstract base class for expression nodes which have # no sub-expressions. @@ -3718,9 +3713,6 @@ class UnopNode(ExprNode): def generate_result_code(self, code): if self.operand.type.is_pyobject: self.generate_py_operation_code(code) - else: - if self.is_temp: - self.generate_c_operation_code(code) def generate_py_operation_code(self, code): function = self.py_operation_function() @@ -4147,9 +4139,6 @@ class BinopNode(ExprNode): extra_args, code.error_goto_if_null(self.result(), self.pos))) code.put_gotref(self.py_result()) - else: - if self.is_temp: - self.generate_c_operation_code(code) def type_error(self): if not (self.operand1.type.is_error