summaryrefslogtreecommitdiff
path: root/source3/lib/charcnv.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-03-18 17:36:35 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-04-14 12:54:13 +1000
commit786447dea021f97a44582009bf33e28d972dacb4 (patch)
treeb6085dabdb23d5b10e16aaf6fd9758e91337c802 /source3/lib/charcnv.c
parent97af7f1ed14bcd00b7606ba6e0379589064cd233 (diff)
downloadsamba-786447dea021f97a44582009bf33e28d972dacb4.tar.gz
samba-786447dea021f97a44582009bf33e28d972dacb4.tar.bz2
samba-786447dea021f97a44582009bf33e28d972dacb4.zip
s3:charcnv remove now unused malloc() based conversion functions
Diffstat (limited to 'source3/lib/charcnv.c')
-rw-r--r--source3/lib/charcnv.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index ab00209a8e..567ee7b8d1 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -1520,26 +1520,6 @@ bool pull_ucs2_talloc(TALLOC_CTX *ctx, char **dest, const smb_ucs2_t *src,
}
/**
- * Copy a string from a UCS2 src to a unix char * destination, allocating a buffer
- *
- * @param dest always set at least to NULL
- * @parm converted_size set to the number of bytes occupied by the string in
- * the destination on success.
- * @return true if new buffer was correctly allocated, and string was
- * converted.
- **/
-
-bool pull_ucs2_allocate(char **dest, const smb_ucs2_t *src,
- size_t *converted_size)
-{
- size_t src_len = (strlen_w(src)+1) * sizeof(smb_ucs2_t);
-
- *dest = NULL;
- return convert_string_allocate(NULL, CH_UTF16LE, CH_UNIX, src, src_len,
- (void **)dest, converted_size, True);
-}
-
-/**
* Copy a string from a UTF-8 src to a unix char * destination, allocating a buffer using talloc
*
* @param dest always set at least to NULL
@@ -1560,25 +1540,6 @@ bool pull_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src,
(void **)dest, converted_size, True);
}
-/**
- * Copy a string from a UTF-8 src to a unix char * destination, allocating a buffer
- *
- * @param dest always set at least to NULL
- * @parm converted_size set to the number of bytes occupied by the string in
- * the destination on success.
- *
- * @return true if new buffer was correctly allocated, and string was
- * converted.
- **/
-
-bool pull_utf8_allocate(char **dest, const char *src, size_t *converted_size)
-{
- size_t src_len = strlen(src)+1;
-
- *dest = NULL;
- return convert_string_allocate(NULL, CH_UTF8, CH_UNIX, src, src_len,
- (void **)dest, converted_size, True);
-}
/**
* Copy a string from a DOS src to a unix char * destination, allocating a buffer using talloc