From: Volker Lendecke Date: Thu, 30 May 2019 08:02:47 +0000 (+0200) Subject: libsmb: Remove unused is_andx_req X-Git-Tag: ldb-2.0.5~372 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8301bfbe8885df60317e0a7765baf0f96588803;p=thirdparty%2Fsamba.git libsmb: Remove unused is_andx_req Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 2e4dd15ab62..6c946ff17d6 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -585,31 +585,6 @@ NTSTATUS cli_echo(struct cli_state *cli, uint16_t num_echos, DATA_BLOB data) return status; } -/** - * Is the SMB command able to hold an AND_X successor - * @param[in] cmd The SMB command in question - * @retval Can we add a chained request after "cmd"? - */ -bool is_andx_req(uint8_t cmd) -{ - switch (cmd) { - case SMBtconX: - case SMBlockingX: - case SMBopenX: - case SMBreadX: - case SMBwriteX: - case SMBsesssetupX: - case SMBulogoffX: - case SMBntcreateX: - return true; - break; - default: - break; - } - - return false; -} - NTSTATUS cli_smb(TALLOC_CTX *mem_ctx, struct cli_state *cli, uint8_t smb_command, uint8_t additional_flags, uint8_t wct, uint16_t *vwv, diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h index eb65cc5eefc..e46745fc261 100644 --- a/source3/libsmb/proto.h +++ b/source3/libsmb/proto.h @@ -217,7 +217,6 @@ struct tevent_req *cli_echo_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, DATA_BLOB data); NTSTATUS cli_echo_recv(struct tevent_req *req); NTSTATUS cli_echo(struct cli_state *cli, uint16_t num_echos, DATA_BLOB data); -bool is_andx_req(uint8_t cmd); NTSTATUS cli_smb(TALLOC_CTX *mem_ctx, struct cli_state *cli, uint8_t smb_command, uint8_t additional_flags, uint8_t wct, uint16_t *vwv,