Removed dead code
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Fri, 1 Aug 2008 21:54:37 +0000 (23:54 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Fri, 1 Aug 2008 21:54:37 +0000 (23:54 +0200)
Cython/Compiler/Main.py
Cython/Compiler/Nodes.py

index 4c3443a548cdcccc20c9fac485c846b25c0e4935..00dcbb09d5ff45fc05295774fedeb9580adcf140 100644 (file)
@@ -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
 
index 61064d0f604cae9dc559b02bef7aec66b2ce9c0f..4c47004096446de14a5d20d69ecf0a91255d9ecd 100644 (file)
@@ -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