Commit d0d38fed authored by Kurt Smith's avatar Kurt Smith Committed by Mark Florisson

remove dead code in MemoryView.py

parent 433c0789
...@@ -45,26 +45,6 @@ def specs_to_code(specs): ...@@ -45,26 +45,6 @@ def specs_to_code(specs):
arr.append("(%s | %s)" % (_spec_to_const[access], _spec_to_const[packing])) arr.append("(%s | %s)" % (_spec_to_const[access], _spec_to_const[packing]))
return arr 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): def put_init_entry(mv_cname, code):
code.putln("%s.data = NULL;" % mv_cname) code.putln("%s.data = NULL;" % mv_cname)
code.putln("%s.memview = NULL;" % mv_cname) code.putln("%s.memview = NULL;" % mv_cname)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment