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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
94886911
Commit
94886911
authored
Jun 25, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused method in CypclassWrapper
parent
f0a680d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
Cython/Compiler/CypclassWrapper.py
Cython/Compiler/CypclassWrapper.py
+0
-18
No files found.
Cython/Compiler/CypclassWrapper.py
View file @
94886911
...
...
@@ -356,24 +356,6 @@ def NAME(self, ARGDECLS):
return
underlying_cyobject
def
synthesize_underlying_assignment
(
self
,
pos
,
cast_name_node
,
self_name
,
underlying_name
,
underlying_type
):
# > reference to the self argument of the wrapper method
self_obj
=
ExprNodes
.
NameNode
(
pos
,
name
=
self_name
)
# > access the underlying cyobject from the self argument of the wrapper method
underlying_obj
=
ExprNodes
.
AttributeNode
(
pos
,
obj
=
self_obj
,
attribute
=
underlying_name
)
# > cast the underlying object back to this type
cast_operation
=
ExprNodes
.
TypecastNode
(
pos
,
type
=
underlying_type
,
operand
=
underlying_obj
,
typecheck
=
False
)
cast_assignment
=
Nodes
.
SingleAssignmentNode
(
pos
,
lhs
=
cast_name_node
,
rhs
=
cast_operation
)
return
cast_assignment
def
insert_cypclass_method_wrappers
(
self
,
node
,
cclass_name
,
stats
):
for
attr
in
node
.
attributes
:
if
isinstance
(
attr
,
Nodes
.
CFuncDefNode
):
...
...
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