s3-dcerpc: remove unused init_rpc_hdr_rb and init_rpc_context.
authorGünther Deschner <gd@samba.org>
Tue, 24 Mar 2009 19:29:59 +0000 (20:29 +0100)
committerSimo Sorce <idra@samba.org>
Thu, 8 Jul 2010 03:45:51 +0000 (23:45 -0400)
Guenther

Signed-off-by: Simo Sorce <idra@samba.org>
source3/include/proto.h
source3/rpc_parse/parse_rpc.c

index 35229c836b9f3d21d62b68d2bbcded2d0fb69079..ed1dc3d4009b13136368d6c52689d1af02d004da 100644 (file)
@@ -5075,12 +5075,6 @@ const char *get_pipe_name_from_syntax(TALLOC_CTX *mem_ctx,
 void init_rpc_hdr(RPC_HDR *hdr, enum dcerpc_pkt_type pkt_type, uint8 flags,
                                uint32 call_id, int data_len, int auth_len);
 bool smb_io_rpc_hdr(const char *desc,  RPC_HDR *rpc, prs_struct *ps, int depth);
-void init_rpc_context(RPC_CONTEXT *rpc_ctx, uint16 context_id,
-                     const struct ndr_syntax_id *abstract,
-                     const struct ndr_syntax_id *transfer);
-void init_rpc_hdr_rb(RPC_HDR_RB *rpc, 
-                               uint16 max_tsize, uint16 max_rsize, uint32 assoc_gid,
-                               RPC_CONTEXT *context);
 bool smb_io_rpc_context(const char *desc, RPC_CONTEXT *rpc_ctx, prs_struct *ps, int depth);
 bool smb_io_rpc_hdr_rb(const char *desc, RPC_HDR_RB *rpc, prs_struct *ps, int depth);
 void init_rpc_hdr_ba(RPC_HDR_BA *rpc, 
index a671c711b49dfb9ced63b26f7ddf744347b84898..eb52c4154430d73b09bc3016128bcdbeefc937b3 100644 (file)
@@ -187,40 +187,6 @@ static bool smb_io_rpc_hdr_bba(const char *desc,  RPC_HDR_BBA *rpc, prs_struct *
        return True;
 }
 
-/*******************************************************************
- Inits an RPC_CONTEXT structure.
- Note the transfer pointer must remain valid until this is marshalled.
-********************************************************************/
-
-void init_rpc_context(RPC_CONTEXT *rpc_ctx, uint16 context_id,
-                     const struct ndr_syntax_id *abstract,
-                     const struct ndr_syntax_id *transfer)
-{
-       rpc_ctx->context_id   = context_id   ; /* presentation context identifier (0x0) */
-       rpc_ctx->num_transfer_syntaxes = 1 ; /* the number of syntaxes (has always been 1?)(0x1) */
-
-       /* num and vers. of interface client is using */
-       rpc_ctx->abstract = *abstract;
-
-       /* vers. of interface to use for replies */
-       rpc_ctx->transfer = CONST_DISCARD(struct ndr_syntax_id *, transfer);
-}
-
-/*******************************************************************
- Inits an RPC_HDR_RB structure.
- Note the context pointer must remain valid until this is marshalled.
-********************************************************************/
-
-void init_rpc_hdr_rb(RPC_HDR_RB *rpc, 
-                               uint16 max_tsize, uint16 max_rsize, uint32 assoc_gid,
-                               RPC_CONTEXT *context)
-{
-       init_rpc_hdr_bba(&rpc->bba, max_tsize, max_rsize, assoc_gid);
-
-       rpc->num_contexts = 1;
-       rpc->rpc_context = context;
-}
-
 /*******************************************************************
  Reads or writes an RPC_CONTEXT structure.
 ********************************************************************/