Skip to content

Commit 0f156c1

Browse files
authored
Remove unused arrange_output_buffer function from zlibmodule.c. (GH-98358)
1 parent 3e82ad0 commit 0f156c1

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Diff for: Modules/zlibmodule.c

-16
Original file line numberDiff line numberDiff line change
@@ -1440,22 +1440,6 @@ arrange_output_buffer_with_maximum(uint32_t *avail_out,
14401440
return length;
14411441
}
14421442

1443-
static inline Py_ssize_t
1444-
arrange_output_buffer(uint32_t *avail_out,
1445-
uint8_t **next_out,
1446-
PyObject **buffer,
1447-
Py_ssize_t length)
1448-
{
1449-
Py_ssize_t ret;
1450-
1451-
ret = arrange_output_buffer_with_maximum(avail_out, next_out, buffer,
1452-
length,
1453-
PY_SSIZE_T_MAX);
1454-
if (ret == -2)
1455-
PyErr_NoMemory();
1456-
return ret;
1457-
}
1458-
14591443
/* Decompress data of length self->avail_in_real in self->state.next_in. The
14601444
output buffer is allocated dynamically and returned. If the max_length is
14611445
of sufficiently low size, max_length is allocated immediately. At most

0 commit comments

Comments
 (0)