]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Remove unused is_andx_req
authorVolker Lendecke <vl@samba.org>
Thu, 30 May 2019 08:02:47 +0000 (10:02 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 18 Jun 2019 12:53:59 +0000 (12:53 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/libsmb/clientgen.c
source3/libsmb/proto.h

index 2e4dd15ab628a00fbdabc8f1fe2165c560b49683..6c946ff17d6c213a0ca35e7145b64e56314bb8bc 100644 (file)
@@ -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,
index eb65cc5eefcd9adfa5ec2f76721546421b8239e0..e46745fc261b2bfdebd7e43979eec0da49300096 100644 (file)
@@ -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,