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
319fabbb
Commit
319fabbb
authored
Feb 15, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete dead code.
parent
969dbad1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
60 deletions
+0
-60
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+0
-60
No files found.
Cython/Compiler/ExprNodes.py
View file @
319fabbb
...
@@ -9043,66 +9043,6 @@ class ClassCellNode(ExprNode):
...
@@ -9043,66 +9043,6 @@ class ClassCellNode(ExprNode):
code
.
put_incref
(
self
.
result
(),
py_object_type
)
code
.
put_incref
(
self
.
result
(),
py_object_type
)
class
BoundMethodNode
(
ExprNode
):
# Helper class used in the implementation of Python
# class definitions. Constructs an bound method
# object from a class and a function.
#
# function ExprNode Function object
# self_object ExprNode self object
subexprs
=
[
'function'
]
def
analyse_types
(
self
,
env
):
self
.
function
=
self
.
function
.
analyse_types
(
env
)
self
.
type
=
py_object_type
self
.
is_temp
=
1
return
self
gil_message
=
"Constructing a bound method"
def
generate_result_code
(
self
,
code
):
code
.
putln
(
"%s = __Pyx_PyMethod_New(%s, %s, (PyObject*)%s->ob_type); %s"
%
(
self
.
result
(),
self
.
function
.
py_result
(),
self
.
self_object
.
py_result
(),
self
.
self_object
.
py_result
(),
code
.
error_goto_if_null
(
self
.
result
(),
self
.
pos
)))
code
.
put_gotref
(
self
.
py_result
())
class
UnboundMethodNode
(
ExprNode
):
# Helper class used in the implementation of Python
# class definitions. Constructs an unbound method
# object from a class and a function.
#
# function ExprNode Function object
type
=
py_object_type
is_temp
=
1
subexprs
=
[
'function'
]
def
analyse_types
(
self
,
env
):
self
.
function
=
self
.
function
.
analyse_types
(
env
)
return
self
def
may_be_none
(
self
):
return
False
gil_message
=
"Constructing an unbound method"
def
generate_result_code
(
self
,
code
):
class_cname
=
code
.
pyclass_stack
[
-
1
].
classobj
.
result
()
code
.
putln
(
"%s = __Pyx_PyMethod_New(%s, 0, %s); %s"
%
(
self
.
result
(),
self
.
function
.
py_result
(),
class_cname
,
code
.
error_goto_if_null
(
self
.
result
(),
self
.
pos
)))
code
.
put_gotref
(
self
.
py_result
())
class
PyCFunctionNode
(
ExprNode
,
ModuleNameMixin
):
class
PyCFunctionNode
(
ExprNode
,
ModuleNameMixin
):
# Helper class used in the implementation of Python
# Helper class used in the implementation of Python
# functions. Constructs a PyCFunction object
# functions. Constructs a PyCFunction object
...
...
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