Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
928ec4b0
Commit
928ec4b0
authored
May 10, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete unused code.
parent
ddd84fe6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
Cython/Compiler/ParseTreeTransforms.pxd
Cython/Compiler/ParseTreeTransforms.pxd
+0
-3
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+1
-14
No files found.
Cython/Compiler/ParseTreeTransforms.pxd
View file @
928ec4b0
...
...
@@ -7,9 +7,6 @@ from .Visitor cimport (
CythonTransform
,
VisitorTransform
,
TreeVisitor
,
ScopeTrackingTransform
,
EnvTransform
)
cdef
class
NameNodeCollector
(
TreeVisitor
):
cdef
list
name_nodes
cdef
class
SkipDeclarations
:
# (object):
pass
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
928ec4b0
...
...
@@ -25,20 +25,6 @@ from .StringEncoding import EncodedString, _unicode
from
.Errors
import
error
,
warning
,
CompileError
,
InternalError
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
):
"""
...
...
@@ -66,6 +52,7 @@ class SkipDeclarations(object):
def
visit_CStructOrUnionDefNode
(
self
,
node
):
return
node
class
NormalizeTree
(
CythonTransform
):
"""
This transform fixes up a few things after parsing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment