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
0241a594
Commit
0241a594
authored
May 23, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused code
parent
7093f8b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+0
-15
No files found.
Cython/Compiler/PyrexTypes.py
View file @
0241a594
...
@@ -1446,21 +1446,6 @@ class CIntType(CNumericType):
...
@@ -1446,21 +1446,6 @@ class CIntType(CNumericType):
TypeName
=
"LongLong"
TypeName
=
"LongLong"
return
"Py%s_From%s%s"
%
(
Prefix
,
SignWord
,
TypeName
)
return
"Py%s_From%s%s"
%
(
Prefix
,
SignWord
,
TypeName
)
def
get_from_py_type_conversion
(
self
):
type_name
=
rank_to_type_name
[
self
.
rank
]
type_name
=
type_name
.
replace
(
"PY_LONG_LONG"
,
"long long"
)
TypeName
=
type_name
.
title
().
replace
(
" "
,
""
)
SignWord
=
self
.
sign_words
[
self
.
signed
].
strip
().
title
()
if
self
.
rank
>=
list
(
rank_to_type_name
).
index
(
'long'
):
utility_code
=
c_long_from_py_function
else
:
utility_code
=
c_int_from_py_function
utility_code
.
specialize
(
self
,
SignWord
=
SignWord
,
TypeName
=
TypeName
)
func_name
=
"__Pyx_PyInt_As%s%s"
%
(
SignWord
,
TypeName
)
return
func_name
def
assignable_from_resolved_type
(
self
,
src_type
):
def
assignable_from_resolved_type
(
self
,
src_type
):
return
src_type
.
is_int
or
src_type
.
is_enum
or
src_type
is
error_type
return
src_type
.
is_int
or
src_type
.
is_enum
or
src_type
is
error_type
...
...
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