summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-09-30 20:01:54 +0200
committerGünther Deschner <gd@samba.org>2009-10-01 11:40:31 +0200
commitbbc71486a7baa086309d877b3ff4f67657053500 (patch)
tree25a2c41a72009776ddf78df5fb5ec792d4d5cc8f
parent347eb9b970b8a97efab2aa6fe6f719ec569f9748 (diff)
downloadsamba-bbc71486a7baa086309d877b3ff4f67657053500.tar.gz
samba-bbc71486a7baa086309d877b3ff4f67657053500.tar.bz2
samba-bbc71486a7baa086309d877b3ff4f67657053500.zip
s3: remove unused rpcstr_pull and rpcstr_pull_talloc.
Guenther
-rw-r--r--source3/include/proto.h6
-rw-r--r--source3/lib/util_unistr.c35
2 files changed, 0 insertions, 41 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 7fff5a6406..d99490e4ce 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1576,12 +1576,6 @@ void load_case_tables(void);
void init_valid_table(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_pull(char* dest, void *src, int dest_len, int src_len, int flags);
-int rpcstr_pull_talloc(TALLOC_CTX *ctx,
- char **dest,
- void *src,
- int src_len,
- int flags);
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);
smb_ucs2_t toupper_w(smb_ucs2_t val);
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index 7d80b3cdea..f53ef94d69 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -256,41 +256,6 @@ char *skip_unibuf(char *src, size_t len)
return src;
}
-/* Copy a string from little-endian or big-endian unicode source (depending
- * on flags) to internal samba format destination
- */
-
-int rpcstr_pull(char* dest, void *src, int dest_len, int src_len, int flags)
-{
- if (!src) {
- dest[0] = 0;
- return 0;
- }
- if(dest_len==-1) {
- dest_len=MAXUNI-3;
- }
- return pull_ucs2(NULL, dest, src, dest_len, src_len, flags|STR_UNICODE|STR_NOALIGN);
-}
-
-/* Copy a string from little-endian or big-endian unicode source (depending
- * on flags) to internal samba format destination. Allocates on talloc ctx.
- */
-
-int rpcstr_pull_talloc(TALLOC_CTX *ctx,
- char **dest,
- void *src,
- int src_len,
- int flags)
-{
- return pull_ucs2_base_talloc(ctx,
- NULL,
- dest,
- src,
- src_len,
- flags|STR_UNICODE|STR_NOALIGN);
-
-}
-
/* Converts a string from internal samba format to unicode
*/