Coverity #151: Remove deadcode.

All this code already exists above starting at line 653.
This commit is contained in:
Neal Norwitz 2007-10-04 06:00:48 +00:00
parent e3fde8f8cd
commit 6ba1a5f51b
1 changed files with 0 additions and 13 deletions

View File

@ -682,19 +682,6 @@ buffer_ass_subscript(PyBufferObject *self, PyObject *item, PyObject *value)
&start, &stop, &step, &slicelength) < 0)
return -1;
pb = value ? value->ob_type->tp_as_buffer : NULL;
if (pb == NULL ||
pb->bf_getreadbuffer == NULL ||
pb->bf_getsegcount == NULL) {
PyErr_BadArgument();
return -1;
}
if ((*pb->bf_getsegcount)(value, NULL) != 1) {
/* ### use a different exception type/message? */
PyErr_SetString(PyExc_TypeError,
"single-segment buffer object expected");
return -1;
}
if ((othersize = (*pb->bf_getreadbuffer)(value, 0, &ptr2)) < 0)
return -1;