OSDN Git Service

remove apparently unused code, this time for real
authorThorsten Glaser <tg@mirbsd.org>
Thu, 1 Jan 2015 19:13:18 +0000 (19:13 +0000)
committerWaldemar Brodkorb <wbx@openadk.org>
Thu, 1 Jan 2015 19:34:49 +0000 (13:34 -0600)
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
libc/misc/regex/regex_internal.c

index f9412d6..c74c6a0 100644 (file)
@@ -650,15 +650,8 @@ re_string_reconstruct (re_string_t *pstr, int idx, int eflags)
                          mbstate_t cur_state;
                          wchar_t wc2;
                          int mlen = raw + pstr->len - p;
-                         unsigned char buf[6];
                          size_t mbclen;
 
-                         if (BE (pstr->trans != NULL, 0))
-                           {
-                             int i = mlen < 6 ? mlen : 6;
-                             while (--i >= 0)
-                               buf[i] = pstr->trans[p[i]];
-                           }
                          /* XXX Don't use mbrtowc, we know which conversion
                             to use (UTF-8 -> UCS4).  */
                          memset (&cur_state, 0, sizeof (cur_state));