From: Dag Sverre Seljebotn Date: Mon, 27 Oct 2008 01:04:41 +0000 (+0100) Subject: Buffers.py: Remove dead code X-Git-Tag: 0.9.9.2.beta~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=77c3bab6354870920b06e62ecad063c87d260ba1;p=cython.git Buffers.py: Remove dead code --- diff --git a/Cython/Compiler/Buffer.py b/Cython/Compiler/Buffer.py index 8283cfe1..c53a5ca4 100644 --- a/Cython/Compiler/Buffer.py +++ b/Cython/Compiler/Buffer.py @@ -702,17 +702,6 @@ def get_getbuffer_code(dtype, code): code.globalstate.use_utility_code(utilcode, name) return name -def buffer_type_checker(dtype, code): - # Creates a type checker function for the given type. - if dtype.is_struct_or_union: - assert False - elif dtype.is_int or dtype.is_float: - # This includes simple typedef-ed types - funcname = get_getbuffer_code(dtype, code) - else: - assert False - return funcname - def use_py2_buffer_functions(env): # Emulation of PyObject_GetBuffer and PyBuffer_Release for Python 2. # For >= 2.6 we do double mode -- use the new buffer interface on objects