text.c: remove unreachable code
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 3 Jan 2024 07:47:22 +0000 (16:47 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 3 Jan 2024 07:47:22 +0000 (16:47 +0900)
Change-Id: I56a7cf554d230cf7233e24c04b1f1ad1f318a194
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/text.c

index 3c8ffd3..e85b0eb 100644 (file)
@@ -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;