From cb5ac1fcf8a4c0617f9e495ced310087056e852b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 22 Nov 2020 12:24:00 +0530 Subject: [PATCH] DRYer --- glfw/wl_init.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/glfw/wl_init.c b/glfw/wl_init.c index ea99a05c1..5659ba630 100644 --- a/glfw/wl_init.c +++ b/glfw/wl_init.c @@ -445,15 +445,11 @@ static void keyboardHandleKey(void* data UNUSED, _glfw.wl.serial = serial; glfw_xkb_handle_key_event(window, &_glfw.wl.xkb, key, action); - bool repeatable = false; if (action == GLFW_PRESS && _glfw.wl.keyboardRepeatRate > 0 && glfw_xkb_should_repeat(&_glfw.wl.xkb, key)) { _glfw.wl.keyRepeatInfo.key = key; - repeatable = true; _glfw.wl.keyRepeatInfo.keyboardFocus = window; - } - if (repeatable) { changeTimerInterval(&_glfw.wl.eventLoopData, _glfw.wl.keyRepeatInfo.keyRepeatTimer, _glfw.wl.keyboardRepeatDelay); toggleTimer(&_glfw.wl.eventLoopData, _glfw.wl.keyRepeatInfo.keyRepeatTimer, 1); } else if (action == GLFW_RELEASE && key == _glfw.wl.keyRepeatInfo.key) {