From 45123530e52d9d096d5a01f02ba4672bd75b9305 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 9 Feb 2012 13:40:52 +1100 Subject: s3-charcnv: Remove unused rpcstr_push() Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett --- source3/include/proto.h | 1 - source3/lib/charcnv.c | 8 -------- 2 files changed, 9 deletions(-) (limited to 'source3') diff --git a/source3/include/proto.h b/source3/include/proto.h index b0f17b3a4a..28f9c6c185 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -85,7 +85,6 @@ size_t pull_string_talloc(TALLOC_CTX *ctx, int flags); size_t align_string(const void *base_ptr, const char *p, int flags); size_t dos_PutUniCode(char *dst,const char *src, size_t len, bool null_terminate); -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); /* The following definitions come from lib/conn_tdb.c */ diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index f5bcab80cf..ecf62e551a 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -595,14 +595,6 @@ size_t dos_PutUniCode(char *dst,const char *src, size_t len, bool null_terminate } -/* Converts a string from internal samba format to unicode - */ - -int rpcstr_push(void *dest, const char *src, size_t dest_len, int flags) -{ - return push_ucs2(NULL, dest, src, dest_len, flags|STR_UNICODE|STR_NOALIGN); -} - /* Converts a string from internal samba format to unicode. Always terminates. * Actually just a wrapper round push_ucs2_talloc(). */ -- cgit