mailinfo: remove a no-op call convert_to_utf8(it, "")
authorJunio C Hamano <gitster@pobox.com>
Wed, 14 Oct 2015 22:33:07 +0000 (15:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Oct 2015 05:13:27 +0000 (22:13 -0700)
The called function checks if the second parameter is either a NULL
or an empty string at the very beginning and returns without doing
anything. Remove the useless call.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mailinfo.c
index 999a5250fbe7e6d38a2c8927fa3c37233142ef19..5a4ed75a2d26b9ca0495563ac0fb8c08f576873e 100644 (file)
@@ -612,11 +612,6 @@ static void decode_header(struct strbuf *it)
 {
        if (decode_header_bq(it))
                return;
-       /* otherwise "it" is a straight copy of the input.
-        * This can be binary guck but there is no charset specified.
-        */
-       if (metainfo_charset)
-               convert_to_utf8(it, "");
 }
 
 static void decode_transfer_encoding(struct strbuf *line)