From 77c3bab6354870920b06e62ecad063c87d260ba1 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Mon, 27 Oct 2008 02:04:41 +0100 Subject: [PATCH] Buffers.py: Remove dead code --- Cython/Compiler/Buffer.py | 11 ----------- 1 file changed, 11 deletions(-) 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 -- 2.26.2