From f33796bee1e853d65afe69dcc4b0f588db0df9fa Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 24 Jun 2016 15:51:53 +0200
Subject: [PATCH] tweaks: elide an impossible case

Typing a Unicode code is always finished after at most six characters:
either retval == uni or retval == kbinput, but it can't be ERR.
---
 src/winio.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/winio.c b/src/winio.c
index bf2f30d9..7b509d97 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -1284,12 +1284,6 @@ long get_unicode_kbinput(int kbinput)
 	    if (retval == ERR)
 		retval = uni;
 	    break;
-	default:
-	    /* If there are more than six digits, return this character
-	     * as the result.  (Maybe we should produce an error
-	     * instead?) */
-	    retval = kbinput;
-	    break;
     }
 
     /* If we have a result, reset the Unicode digit counter and the
-- 
GitLab