Commit 928ec4b0 authored by Stefan Behnel's avatar Stefan Behnel

Delete unused code.

parent ddd84fe6
...@@ -7,9 +7,6 @@ from .Visitor cimport ( ...@@ -7,9 +7,6 @@ from .Visitor cimport (
CythonTransform, VisitorTransform, TreeVisitor, CythonTransform, VisitorTransform, TreeVisitor,
ScopeTrackingTransform, EnvTransform) ScopeTrackingTransform, EnvTransform)
cdef class NameNodeCollector(TreeVisitor):
cdef list name_nodes
cdef class SkipDeclarations: # (object): cdef class SkipDeclarations: # (object):
pass pass
......
...@@ -25,20 +25,6 @@ from .StringEncoding import EncodedString, _unicode ...@@ -25,20 +25,6 @@ from .StringEncoding import EncodedString, _unicode
from .Errors import error, warning, CompileError, InternalError from .Errors import error, warning, CompileError, InternalError
from .Code import UtilityCode from .Code import UtilityCode
class NameNodeCollector(TreeVisitor):
"""Collect all NameNodes of a (sub-)tree in the ``name_nodes``
attribute.
"""
def __init__(self):
super(NameNodeCollector, self).__init__()
self.name_nodes = []
def visit_NameNode(self, node):
self.name_nodes.append(node)
def visit_Node(self, node):
self._visitchildren(node, None)
class SkipDeclarations(object): class SkipDeclarations(object):
""" """
...@@ -66,6 +52,7 @@ class SkipDeclarations(object): ...@@ -66,6 +52,7 @@ class SkipDeclarations(object):
def visit_CStructOrUnionDefNode(self, node): def visit_CStructOrUnionDefNode(self, node):
return node return node
class NormalizeTree(CythonTransform): class NormalizeTree(CythonTransform):
""" """
This transform fixes up a few things after parsing This transform fixes up a few things after parsing
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment