From 02c6c4ac5c423bfc91817721c70ab5acdc8fc52b Mon Sep 17 00:00:00 2001 From: speedie Date: Fri, 23 Jun 2023 20:27:44 +0200 Subject: [PATCH] Remove unnecessary `else continue;` from X11 and Wayland keybind handling --- libs/wl/wayland.c | 4 ---- libs/x11/key.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/libs/wl/wayland.c b/libs/wl/wayland.c index 21c62aa..01fad0a 100644 --- a/libs/wl/wayland.c +++ b/libs/wl/wayland.c @@ -95,8 +95,6 @@ void keypress_wl(struct state *state, enum wl_keyboard_key_state key_state, xkb_ return; } else if (!wl_keys[i].mode && !sp.mode) { wl_keys[i].func(&(wl_keys[i].arg)); - } else { - continue; } } } @@ -110,8 +108,6 @@ void keypress_wl(struct state *state, enum wl_keyboard_key_state key_state, xkb_ return; } else if (!wl_ckeys[i].mode && !sp.mode) { wl_ckeys[i].func(&(wl_ckeys[i].arg)); - } else { - continue; } } } diff --git a/libs/x11/key.c b/libs/x11/key.c index e00af6d..a03676c 100644 --- a/libs/x11/key.c +++ b/libs/x11/key.c @@ -43,8 +43,6 @@ void keypress_x11(XEvent *e) { return; } else if (!keys[i].mode && !sp.mode) { keys[i].func(&(keys[i].arg)); - } else { - continue; } } } @@ -57,8 +55,6 @@ void keypress_x11(XEvent *e) { return; } else if (!ckeys[i].mode && !sp.mode) { ckeys[i].func(&(ckeys[i].arg)); - } else { - continue; } } }