From 0419e24287d09a71735d94ea019a7f17842201d3 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 25 May 2005 00:51:39 +0000 Subject: r6965: Remove some dead code from util_unistr.c. Start of fix for #2735 - we are not mangling some names we should. More fixes to follow. Jeremy. (This used to be commit ac0fa973774c36b72863aea369e9d243cf7420fa) --- source3/lib/util_unistr.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index 0b4552e1f5..89639423bb 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -254,22 +254,6 @@ int rpcstr_push(void* dest, const char *src, int dest_len, int flags) return push_ucs2(NULL, dest, src, dest_len, flags|STR_UNICODE|STR_NOALIGN); } -/******************************************************************* - Return a DOS codepage version of a little-endian unicode string. - len is the filename length (ignoring any terminating zero) in uin16 - units. Always null terminates. - Hack alert: uses fixed buffer(s). -********************************************************************/ -char *dos_unistrn2(const uint16 *src, int len) -{ - static char lbufs[8][MAXUNI]; - static int nexti; - char *lbuf = lbufs[nexti]; - nexti = (nexti+1)%8; - pull_ucs2(NULL, lbuf, src, MAXUNI-3, len*2, STR_NOALIGN); - return lbuf; -} - /******************************************************************* Convert a (little-endian) UNISTR2 structure to an ASCII string ********************************************************************/ -- cgit