]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Remove unneeded statement.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 23 Mar 2011 01:06:24 +0000 (21:06 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 23 Mar 2011 01:06:24 +0000 (21:06 -0400)
wchar.h is no longer neeeded at archive_read_support_format_tar.c.

SVN-Revision: 3054

libarchive/archive_read_support_format_tar.c

index 1eddaabd93cfe4c3b0b8a2359eb70864996f8627..46c0beab5377d2c247ee8d5a4da5f216005ac107 100644 (file)
@@ -31,7 +31,6 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_read_support_format_tar.c 201161
 #include <errno.h>
 #endif
 #include <stddef.h>
-/* #include <stdint.h> */ /* See archive_platform.h */
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
@@ -39,35 +38,6 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_read_support_format_tar.c 201161
 #include <string.h>
 #endif
 
-/* Obtain suitable wide-character manipulation functions. */
-#ifdef HAVE_WCHAR_H
-#include <wchar.h>
-#else
-/* Good enough for equality testing, which is all we need. */
-static int wcscmp(const wchar_t *s1, const wchar_t *s2)
-{
-       int diff = *s1 - *s2;
-       while (*s1 && diff == 0)
-               diff = (int)*++s1 - (int)*++s2;
-       return diff;
-}
-/* Good enough for equality testing, which is all we need. */
-static int wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n)
-{
-       int diff = *s1 - *s2;
-       while (*s1 && diff == 0 && n-- > 0)
-               diff = (int)*++s1 - (int)*++s2;
-       return diff;
-}
-static size_t wcslen(const wchar_t *s)
-{
-       const wchar_t *p = s;
-       while (*p)
-               p++;
-       return p - s;
-}
-#endif
-
 #include "archive.h"
 #include "archive_acl_private.h" /* For ACL parsing routines. */
 #include "archive_entry.h"