From af971af4caf3cdd4278e6a073de83338fe02fff1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 25 Sep 2017 21:54:03 +0530 Subject: [PATCH] Remove unused code --- kitty/glfw.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/kitty/glfw.c b/kitty/glfw.c index 82b8893bb..8d03b3ccc 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -305,14 +305,6 @@ set_should_close(WindowWrapper *self, PyObject *args) { Py_RETURN_NONE; } -static PyObject* -set_input_mode(WindowWrapper *self, PyObject *args) { - int which, value; - if (!PyArg_ParseTuple(args, "ii", &which, &value)) return NULL; - glfwSetInputMode(self->window, which, value); - Py_RETURN_NONE; -} - static PyObject* is_key_pressed(WindowWrapper *self, PyObject *args) { int c; @@ -428,7 +420,6 @@ static PyMethodDef methods[] = { MND(cocoa_window_id, METH_NOARGS), #endif MND(set_should_close, METH_VARARGS), - MND(set_input_mode, METH_VARARGS), MND(is_key_pressed, METH_VARARGS), MND(set_clipboard_string, METH_VARARGS), MND(make_context_current, METH_NOARGS),