summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-09 13:40:52 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-10 16:45:14 +1100
commit45123530e52d9d096d5a01f02ba4672bd75b9305 (patch)
treef92afb881dded67931d65ecaeebb905d27cf8ae6 /source3
parenta7835f473694dd7ff0ad7679e86fd4b2de7e23ce (diff)
downloadsamba-45123530e52d9d096d5a01f02ba4672bd75b9305.tar.gz
samba-45123530e52d9d096d5a01f02ba4672bd75b9305.tar.bz2
samba-45123530e52d9d096d5a01f02ba4672bd75b9305.zip
s3-charcnv: Remove unused rpcstr_push()
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/lib/charcnv.c8
2 files changed, 0 insertions, 9 deletions
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().
*/