From 38c5aa93aa9fc212a8b4d580ded719a90e1ab85d Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 3 Jan 2024 16:47:22 +0900 Subject: text.c: remove unreachable code Change-Id: I56a7cf554d230cf7233e24c04b1f1ad1f318a194 Signed-off-by: Jihoon Kim --- src/text.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/text.c b/src/text.c index 3c8ffd3..e85b0eb 100644 --- a/src/text.c +++ b/src/text.c @@ -216,9 +216,6 @@ ModIndexText(struct xkb_context *ctx, const struct xkb_mod_set *mods, if (ndx == XKB_MOD_INVALID) return "none"; - if (ndx == XKB_MOD_NONE) - return "None"; - if (ndx >= mods->num_mods) return NULL; -- cgit v1.2.3