From ba2b7f72c0459123c6bf88ee1c272e94dbfdcf9b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 12 Apr 2011 16:10:57 +1000 Subject: s3-lib Remove unused skip_unibuf() Signed-off-by: Andrew Tridgell --- source3/include/proto.h | 1 - source3/lib/util_unistr.c | 20 -------------------- 2 files changed, 21 deletions(-) diff --git a/source3/include/proto.h b/source3/include/proto.h index 36ce634300..4b7fda106c 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1051,7 +1051,6 @@ char *sanitize_username(TALLOC_CTX *mem_ctx, const char *username); void gfree_case_tables(void); void load_case_tables(void); size_t dos_PutUniCode(char *dst,const char *src, size_t len, bool null_terminate); -char *skip_unibuf(char *src, size_t len); int rpcstr_push(void *dest, const char *src, size_t dest_len, int flags); int rpcstr_push_talloc(TALLOC_CTX *ctx, smb_ucs2_t **dest, const char *src); bool isvalid83_w(smb_ucs2_t c); diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index 5ec947ecbf..f279ceafc3 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -92,26 +92,6 @@ size_t dos_PutUniCode(char *dst,const char *src, size_t len, bool null_terminate } -/******************************************************************* - Skip past a unicode string, but not more than len. Always move - past a terminating zero if found. -********************************************************************/ - -char *skip_unibuf(char *src, size_t len) -{ - char *srcend = src + len; - - while (src < srcend && SVAL(src,0)) { - src += 2; - } - - if(!SVAL(src,0)) { - src += 2; - } - - return src; -} - /* Converts a string from internal samba format to unicode */ -- cgit