summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-26 02:14:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:16 -0500
commit525a993469f50ccf8cf5a44cb337a06d61f50622 (patch)
treed6e5f96710aa0fd7ec0bccea4c5ed1e5684722ab
parent6bea5bea4ccd4eb45b9cd4dd1e16538b14e2180e (diff)
downloadsamba-525a993469f50ccf8cf5a44cb337a06d61f50622.tar.gz
samba-525a993469f50ccf8cf5a44cb337a06d61f50622.tar.bz2
samba-525a993469f50ccf8cf5a44cb337a06d61f50622.zip
r2644: removed an unused function
(This used to be commit bc779cb2ce6bc13157f9d046400ce99d107ccd52)
-rw-r--r--source4/lib/util_unistr.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/source4/lib/util_unistr.c b/source4/lib/util_unistr.c
index 59386ec31d..713f50708b 100644
--- a/source4/lib/util_unistr.c
+++ b/source4/lib/util_unistr.c
@@ -86,26 +86,9 @@ void load_case_tables(void)
}
}
-/*
- see if a ucs2 character can be mapped correctly to a dos character
- and mapped back to the same character in ucs2
-*/
-static int check_dos_char(smb_ucs2_t c)
-{
- char buf[10];
- smb_ucs2_t c2 = 0;
- int len1, len2;
- len1 = convert_string(CH_UTF16, CH_DOS, &c, 2, buf, sizeof(buf));
- if (len1 == 0) return 0;
- len2 = convert_string(CH_DOS, CH_UTF16, buf, len1, &c2, 2);
- if (len2 != 2) return 0;
- return (c == c2);
-}
-
/*******************************************************************
Convert a wchar to upper case.
********************************************************************/
-
smb_ucs2_t toupper_w(smb_ucs2_t val)
{
return upcase_table[SVAL(&val,0)];
@@ -114,7 +97,6 @@ smb_ucs2_t toupper_w(smb_ucs2_t val)
/*******************************************************************
Convert a wchar to lower case.
********************************************************************/
-
static smb_ucs2_t tolower_w( smb_ucs2_t val )
{
return lowcase_table[SVAL(&val,0)];