]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused arrange_output_buffer function from zlibmodule.c. (GH-98358)
authorBenjamin Peterson <benjamin@python.org>
Mon, 17 Oct 2022 16:38:34 +0000 (09:38 -0700)
committerGitHub <noreply@github.com>
Mon, 17 Oct 2022 16:38:34 +0000 (09:38 -0700)
Modules/zlibmodule.c

index 88d2dd5563536b3658716196ab91893ed2b6740d..2a490ed5d183a7b79c94b1ebb9711b56c53449ca 100644 (file)
@@ -1440,22 +1440,6 @@ arrange_output_buffer_with_maximum(uint32_t *avail_out,
     return length;
 }
 
-static inline Py_ssize_t
-arrange_output_buffer(uint32_t *avail_out,
-                      uint8_t **next_out,
-                      PyObject **buffer,
-                      Py_ssize_t length)
-{
-    Py_ssize_t ret;
-
-    ret = arrange_output_buffer_with_maximum(avail_out, next_out, buffer,
-                                             length,
-                                             PY_SSIZE_T_MAX);
-    if (ret == -2)
-        PyErr_NoMemory();
-    return ret;
-}
-
 /* Decompress data of length self->avail_in_real in self->state.next_in. The 
    output buffer is allocated dynamically and returned. If the max_length is 
    of sufficiently low size, max_length is allocated immediately. At most