diff options
author | Kurt Smith <kwsmith1@wisc.edu> | 2009-08-11 18:58:18 -0500 |
---|---|---|
committer | Kurt Smith <kwsmith1@wisc.edu> | 2009-08-11 18:58:18 -0500 |
commit | c2690f05252e63870a253a00a5c9a8d1d5f7eb74 (patch) | |
tree | 72d72861be4525796026e4492208f6be8fed9295 | |
parent | 3aa20f4c79525b860cca1de0142e97c9264c956b (diff) | |
download | cython-c2690f05252e63870a253a00a5c9a8d1d5f7eb74.tar.gz |
remove dead code in MemoryView.py
-rw-r--r-- | Cython/Compiler/MemoryView.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Cython/Compiler/MemoryView.py b/Cython/Compiler/MemoryView.py index d4fdee267..8fe548534 100644 --- a/Cython/Compiler/MemoryView.py +++ b/Cython/Compiler/MemoryView.py @@ -45,26 +45,6 @@ def specs_to_code(specs): arr.append("(%s | %s)" % (_spec_to_const[access], _spec_to_const[packing])) return arr -# XXX: add complex support below... -_typename_to_format = { - 'char' : 'c', - 'signed char' : 'b', - 'unsigned char' : 'B', - 'short' : 'h', - 'unsigned short' : 'H', - 'int' : 'i', - 'unsigned int' : 'I', - 'long' : 'l', - 'unsigned long' : 'L', - 'long long' : 'q', - 'unsigned long long' : 'Q', - 'float' : 'f', - 'double' : 'd', - } - -def format_from_type(base_type): - return _typename_to_format[base_type.sign_and_name()] - def put_init_entry(mv_cname, code): code.putln("%s.data = NULL;" % mv_cname) code.putln("%s.memview = NULL;" % mv_cname) |