This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
removing dead code
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: removing dead code
- From: Bruno Haible <haible at ilog dot fr>
- Date: Thu, 23 Mar 2000 14:20:33 +0100 (MET)
Here is a patch to remove some dead code. The code was probably meant to
read "*converted += n_convert;" but *converted now counts only the lossy
conversions.
2000-03-23 Bruno Haible <haible@clisp.cons.org>
* iconv/gconv_simple.c (internal_ucs4_loop, internal_ucs4le_loop):
Remove no-op pointer increment.
*** iconv/gconv_simple.c.bak Wed Mar 22 22:09:49 2000
--- iconv/gconv_simple.c Thu Mar 23 01:07:23 2000
***************
*** 96,104 ****
else
result = __GCONV_INCOMPLETE_INPUT;
- if (converted != NULL)
- converted += n_convert;
-
return result;
}
--- 96,101 ----
***************
*** 150,158 ****
result = __GCONV_EMPTY_INPUT;
else
result = __GCONV_INCOMPLETE_INPUT;
-
- if (converted != NULL)
- converted += n_convert;
return result;
}
--- 147,152 ----