summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-06-15 15:33:44 -0700
committerJeremy Allison <jra@samba.org>2010-06-15 15:33:44 -0700
commit81f70834caa4d77f0799506bd9c17d05d631ebd4 (patch)
treef315d1a6ebfcfd18f28688ef44bb096c45d10322 /source3
parent2c125595fb03d1f3940545438bb4ec462585beb7 (diff)
downloadsamba-81f70834caa4d77f0799506bd9c17d05d631ebd4.tar.gz
samba-81f70834caa4d77f0799506bd9c17d05d631ebd4.tar.bz2
samba-81f70834caa4d77f0799506bd9c17d05d631ebd4.zip
Remove unused function.
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/rpc_parse/parse_prs.c14
2 files changed, 0 insertions, 15 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index df991e35f4..cd8d94261e 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -5077,7 +5077,6 @@ char *prs_alloc_mem_(prs_struct *ps, size_t size, unsigned int count);
char *prs_alloc_mem(prs_struct *ps, size_t size, unsigned int count);
TALLOC_CTX *prs_get_mem_context(prs_struct *ps);
void prs_give_memory(prs_struct *ps, char *buf, uint32 size, bool is_dynamic);
-char *prs_take_memory(prs_struct *ps, uint32 *psize);
bool prs_set_buffer_size(prs_struct *ps, uint32 newsize);
bool prs_grow(prs_struct *ps, uint32 extra_space);
bool prs_force_grow(prs_struct *ps, uint32 extra_space);
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c
index 673cb2593e..41bfd8ae0f 100644
--- a/source3/rpc_parse/parse_prs.c
+++ b/source3/rpc_parse/parse_prs.c
@@ -194,20 +194,6 @@ void prs_give_memory(prs_struct *ps, char *buf, uint32 size, bool is_dynamic)
}
/*******************************************************************
- Take some memory back from a prs_struct.
- ********************************************************************/
-
-char *prs_take_memory(prs_struct *ps, uint32 *psize)
-{
- char *ret = ps->data_p;
- if(psize)
- *psize = ps->buffer_size;
- ps->is_dynamic = False;
- prs_mem_free(ps);
- return ret;
-}
-
-/*******************************************************************
Set a prs_struct to exactly a given size. Will grow or tuncate if neccessary.
********************************************************************/