summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-09 11:11:10 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-10 16:45:12 +1100
commit3b88c1e60596a88f09891df4696b6dd055bc6da8 (patch)
treee80607d7f51a8f1697bfbe4d4697043412635791 /source3
parent983d205486d4f2c518fbe02ef92b8884f5c9f2dc (diff)
downloadsamba-3b88c1e60596a88f09891df4696b6dd055bc6da8.tar.gz
samba-3b88c1e60596a88f09891df4696b6dd055bc6da8.tar.bz2
samba-3b88c1e60596a88f09891df4696b6dd055bc6da8.zip
s3-charcnv: Remove unused pull_string_fn
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h7
-rw-r--r--source3/lib/charcnv.c35
2 files changed, 0 insertions, 42 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index a94f6c42da..6ad0a82f5c 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -76,13 +76,6 @@ size_t push_string_check_fn(void *dest, const char *src,
size_t push_string_base(const char *base, uint16 flags2,
void *dest, const char *src,
size_t dest_len, int flags);
-size_t pull_string_fn(const void *base_ptr,
- uint16 smb_flags2,
- char *dest,
- const void *src,
- size_t dest_len,
- size_t src_len,
- int flags);
size_t pull_string_talloc(TALLOC_CTX *ctx,
const void *base_ptr,
uint16 smb_flags2,
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index 7d7058cbb0..f5bcab80cf 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -523,41 +523,6 @@ size_t push_string_base(const char *base, uint16 flags2,
/**
Copy a string from a unicode or ascii source (depending on
the packet flags) to a char* destination.
- Flags can have:
- STR_TERMINATE means the string in src is null terminated.
- STR_UNICODE means to force as unicode.
- STR_ASCII use ascii even with unicode packet.
- STR_NOALIGN means don't do alignment.
- if STR_TERMINATE is set then src_len is ignored is it is -1
- src_len is the length of the source area in bytes.
- Return the number of bytes occupied by the string in src.
- The resulting string in "dest" is always null terminated.
-**/
-
-size_t pull_string_fn(const void *base_ptr,
- uint16 smb_flags2,
- char *dest,
- const void *src,
- size_t dest_len,
- size_t src_len,
- int flags)
-{
- if ((base_ptr == NULL) && ((flags & (STR_ASCII|STR_UNICODE)) == 0)) {
- smb_panic("No base ptr to get flg2 and neither ASCII nor "
- "UNICODE defined");
- }
-
- if (!(flags & STR_ASCII) && \
- ((flags & STR_UNICODE || \
- (smb_flags2 & FLAGS2_UNICODE_STRINGS)))) {
- return pull_ucs2(base_ptr, dest, src, dest_len, src_len, flags);
- }
- return pull_ascii(dest, src, dest_len, src_len, flags);
-}
-
-/**
- Copy a string from a unicode or ascii source (depending on
- the packet flags) to a char* destination.
Variant that uses talloc.
Flags can have:
STR_TERMINATE means the string in src is null terminated.