From: Dag Sverre Seljebotn Date: Fri, 1 Aug 2008 21:54:37 +0000 (+0200) Subject: Removed dead code X-Git-Tag: 0.9.8.1~49^2~37 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d34a5f7e6b04cad19ab3e6ccf21386e5c673c1ab;p=cython.git Removed dead code --- diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index 4c3443a5..00dcbb09 100644 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -110,11 +110,9 @@ class Context: return result def inject_pxd_code(module_node): - from Nodes import CCommentNode from textwrap import dedent stats = module_node.body.stats for name, (statlistnode, scope) in self.pxds.iteritems(): - #stats.append(CCommentNode('Code from cimported "%s"' % name, header=True)) stats.append(statlistnode) return module_node diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 61064d0f..4c470040 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -3875,33 +3875,6 @@ class FromImportStatNode(StatNode): self.module.generate_disposal_code(code) -class CForeignScopeNode(StatNode): - """ - Used for wrapping FuncDefNodes from pxds so that they generate their - code in the right scope. - """ - pass - -class CCommentNode(StatNode): - # not working! - def __init__(self, comment, header=False): - self.pos - assert '/' not in comment # todo: better escaping - if header: - from textwrap import dedent - comment = dedent(""" - /* - * %s - */ - """) % comment - else: - comment = "/* %s */" % comment - self.comment = comment - - def generate_execution_code(self, code): - code.putln(self.header) - - #------------------------------------------------------------------------------------ # # Runtime support code