mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Remove not needed function
This commit is contained in:
@@ -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 */
|
||||
};
|
||||
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user