mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Removed unused code check_dos_char_slowly.
This commit is contained in:
parent
242a63e95a
commit
ebb2fb7efb
@ -42,23 +42,6 @@ void gfree_case_tables(void)
|
||||
initialized = false;
|
||||
}
|
||||
|
||||
static int check_dos_char_slowly(smb_ucs2_t c)
|
||||
{
|
||||
char buf[10];
|
||||
smb_ucs2_t c2 = 0;
|
||||
int len1, len2;
|
||||
|
||||
len1 = convert_string(CH_UTF16LE, CH_DOS, &c, 2, buf, sizeof(buf),False);
|
||||
if (len1 == 0) {
|
||||
return 0;
|
||||
}
|
||||
len2 = convert_string(CH_DOS, CH_UTF16LE, buf, len1, &c2, 2,False);
|
||||
if (len2 != 2) {
|
||||
return 0;
|
||||
}
|
||||
return (c == c2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the valid character map table from <tt>valid.dat</tt> or
|
||||
* create from the configured codepage.
|
||||
|
Loading…
Reference in New Issue
Block a user