From d34a5f7e6b04cad19ab3e6ccf21386e5c673c1ab Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Fri, 1 Aug 2008 23:54:37 +0200 Subject: [PATCH] Removed dead code --- Cython/Compiler/Main.py | 2 -- Cython/Compiler/Nodes.py | 27 --------------------------- 2 files changed, 29 deletions(-) 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 -- 2.26.2