Remove not needed function

This commit is contained in:
Kovid Goyal
2023-11-14 22:52:07 +05:30
parent 794bd85371
commit c5f0b03a62
4 changed files with 6 additions and 15 deletions

View File

@@ -901,13 +901,6 @@ PyTypeObject Hasher_Type = {
};
// }}} end Hasher
static PyObject*
decode_utf8_buffer(PyObject *self UNUSED, PyObject *args) {
RAII_PY_BUFFER(buf);
if (!PyArg_ParseTuple(args, "s*", &buf)) return NULL;
return PyUnicode_FromStringAndSize(buf.buf, buf.len);
}
static bool
call_ftc_callback(PyObject *callback, char *src, Py_ssize_t key_start, Py_ssize_t key_length, Py_ssize_t val_start, Py_ssize_t val_length) {
while(src[key_start] == ';' && key_length > 0 ) { key_start++; key_length--; }
@@ -952,7 +945,6 @@ parse_ftc(PyObject *self UNUSED, PyObject *args) {
static PyMethodDef module_methods[] = {
{"parse_ftc", parse_ftc, METH_VARARGS, ""},
{"decode_utf8_buffer", decode_utf8_buffer, METH_VARARGS, ""},
{NULL, NULL, 0, NULL} /* Sentinel */
};

View File

@@ -42,5 +42,4 @@ class Differ:
def next_op(self, read: Callable[[WriteBuffer], int], write: Callable[[ReadOnlyBuffer], None]) -> bool: ...
def decode_utf8_buffer(x: ReadOnlyBuffer) -> str: ...
def parse_ftc(x: Union[str, ReadOnlyBuffer], callback: Callable[[memoryview, memoryview], None]) -> None: ...