Issue #10293: Remove obsolete field in the PyMemoryView structure,

unused undocumented value PyBUF_SHADOW, and strangely-looking code in
PyMemoryView_GetContiguous.
This commit is contained in:
Antoine Pitrou 2010-11-04 20:30:33 +00:00
parent 8f2e07b7d0
commit aeb6ceead7
5 changed files with 6 additions and 47 deletions

View file

@ -63,7 +63,6 @@ PyAPI_FUNC(PyObject *) PyMemoryView_FromBuffer(Py_buffer *info);
and functions instead! */
typedef struct {
PyObject_HEAD
PyObject *base;
Py_buffer view;
} PyMemoryViewObject;

View file

@ -189,7 +189,6 @@ typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
#define PyBUF_READ 0x100
#define PyBUF_WRITE 0x200
#define PyBUF_SHADOW 0x400
/* End buffer interface */