Remove unused code
This commit is contained in:
parent
8b5f02bb0b
commit
5955b44c74
15
kitty/glfw.c
15
kitty/glfw.c
@ -1013,20 +1013,6 @@ set_primary_selection(PyObject UNUSED *self, PyObject *args) {
|
|||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject*
|
|
||||||
os_window_swap_buffers(PyObject UNUSED *self, PyObject *args) {
|
|
||||||
id_type os_window_id;
|
|
||||||
if (!PyArg_ParseTuple(args, "K", &os_window_id)) return NULL;
|
|
||||||
for (size_t i = 0; i < global_state.num_os_windows; i++) {
|
|
||||||
OSWindow *w = global_state.os_windows + i;
|
|
||||||
if (w->id == os_window_id) {
|
|
||||||
swap_window_buffers(w); Py_RETURN_NONE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
PyErr_SetString(PyExc_ValueError, "no such OSWindow");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject*
|
static PyObject*
|
||||||
set_smallest_allowed_resize(PyObject *self UNUSED, PyObject *args) {
|
set_smallest_allowed_resize(PyObject *self UNUSED, PyObject *args) {
|
||||||
if (!PyArg_ParseTuple(args, "ii", &min_width, &min_height)) return NULL;
|
if (!PyArg_ParseTuple(args, "ii", &min_width, &min_height)) return NULL;
|
||||||
@ -1172,7 +1158,6 @@ static PyMethodDef module_methods[] = {
|
|||||||
METHODB(toggle_fullscreen, METH_NOARGS),
|
METHODB(toggle_fullscreen, METH_NOARGS),
|
||||||
METHODB(change_os_window_state, METH_VARARGS),
|
METHODB(change_os_window_state, METH_VARARGS),
|
||||||
METHODB(glfw_window_hint, METH_VARARGS),
|
METHODB(glfw_window_hint, METH_VARARGS),
|
||||||
METHODB(os_window_swap_buffers, METH_VARARGS),
|
|
||||||
METHODB(get_primary_selection, METH_NOARGS),
|
METHODB(get_primary_selection, METH_NOARGS),
|
||||||
METHODB(x11_display, METH_NOARGS),
|
METHODB(x11_display, METH_NOARGS),
|
||||||
METHODB(x11_window_id, METH_O),
|
METHODB(x11_window_id, METH_O),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user