From 5d8353831febe8478fb99104016fec6bef7413c8 Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 4 Dec 2023 21:25:51 +0100 Subject: [PATCH] remove unused Python 2 methods --- zmq/backend/cython/message.pyx | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/zmq/backend/cython/message.pyx b/zmq/backend/cython/message.pyx index 1130eace9..f73e9cdb9 100644 --- a/zmq/backend/cython/message.pyx +++ b/zmq/backend/cython/message.pyx @@ -231,26 +231,6 @@ cdef class Frame: buffer.itemsize = 1 buffer.internal = NULL - def __getsegcount__(self, Py_ssize_t *lenp): - # required for getreadbuffer - if lenp != NULL: - lenp[0] = zmq_msg_size(&self.zmq_msg) - return 1 - - def __getreadbuffer__(self, Py_ssize_t idx, void **p): - # old-style (buffer) interface - cdef char *data_c = NULL - cdef Py_ssize_t data_len_c - if idx != 0: - raise SystemError("accessing non-existent buffer segment") - # read-only, because we don't want to allow - # editing of the message in-place - data_c = zmq_msg_data(&self.zmq_msg) - data_len_c = zmq_msg_size(&self.zmq_msg) - if p != NULL: - p[0] = data_c - return data_len_c - # end buffer interface def __copy__(self):