diff options
-rw-r--r-- | source3/include/proto.h | 1 | ||||
-rw-r--r-- | source3/rpc_parse/parse_prs.c | 14 |
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. ********************************************************************/ |