From 785bbd422461295890087ced24bfd87504032d0c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 10 Apr 2011 11:02:59 -0700 Subject: [PATCH] * editfns.c (Fformat): Remove unreachable code. 2011-04-10 Paul Eggert --- src/ChangeLog | 4 ++++ src/editfns.c | 8 +------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6d300875518..58df7e08955 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-04-10 Paul Eggert + + * editfns.c (Fformat): Remove unreachable code. + 2011-04-10 Paul Eggert Fix more problems found by GCC 4.6.0's static checks. diff --git a/src/editfns.c b/src/editfns.c index e754a074ba8..85b30de6975 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3802,7 +3802,7 @@ usage: (format STRING &rest OBJECTS) */) if (*format == 'c') { if (! ASCII_CHAR_P (XINT (args[n])) - /* Note: No one can remeber why we have to treat + /* Note: No one can remember why we have to treat the character 0 as a multibyte character here. But, until it causes a real problem, let's don't change it. */ @@ -3816,12 +3816,6 @@ usage: (format STRING &rest OBJECTS) */) args[n] = Fchar_to_string (args[n]); thissize = SBYTES (args[n]); } - else if (! ASCII_BYTE_P (XINT (args[n])) && multibyte) - { - args[n] - = Fchar_to_string (Funibyte_char_to_multibyte (args[n])); - thissize = SBYTES (args[n]); - } } } else if (FLOATP (args[n]) && *format != 's') -- 2.39.2