[glib: 1/2] gtranslit: Drop duplicate if case



commit 99e2cc72ddf2ebfc1511f9b2a8381c995f707b66
Author: Philip Withnall <withnall endlessm com>
Date:   Tue May 12 10:36:07 2020 +0100

    gtranslit: Drop duplicate if case
    
    This seems to have existed since the code was written and I can’t see
    a need for it.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Fixes: #2106

 glib/gtranslit.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/glib/gtranslit.c b/glib/gtranslit.c
index 4d83ee9f9..3cffe1d2d 100644
--- a/glib/gtranslit.c
+++ b/glib/gtranslit.c
@@ -400,11 +400,6 @@ g_str_to_ascii (const gchar *str,
           else /* no match found */
             g_string_append_c (result, '?');
         }
-      else if (*str & 0x80) /* Out-of-range non-ASCII case */
-        {
-          g_string_append_c (result, '?');
-          str = g_utf8_next_char (str);
-        }
       else /* ASCII case */
         g_string_append_c (result, *str++);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]