]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Remove unused cli_is_nt_error()
authorVolker Lendecke <vl@samba.org>
Sat, 23 Sep 2023 00:50:19 +0000 (17:50 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 25 Sep 2023 19:01:34 +0000 (19:01 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clierror.c
source3/libsmb/proto.h

index f1730065b96f2847b8153e31986bd744fc18768b..da4aa0aefd9fc7dd5d15d5e870e7055f4591b103 100644 (file)
@@ -128,18 +128,6 @@ bool cli_is_error(struct cli_state *cli)
        return NT_STATUS_IS_ERR(cli->raw_status);
 }
 
-/* Return true if the last error was an NT error */
-
-bool cli_is_nt_error(struct cli_state *cli)
-{
-       /* A socket error is always an NT error. */
-       if (!cli_state_is_connected(cli)) {
-               return true;
-       }
-
-       return cli_is_error(cli) && !NT_STATUS_IS_DOS(cli->raw_status);
-}
-
 /* Return true if the last error was a DOS error */
 
 bool cli_is_dos_error(struct cli_state *cli)
index 0ca6fd01d0132b67bbb42585192d762f2d7fb5b3..0522b1b6868574c494c5461e58dc4486b214caf6 100644 (file)
@@ -222,7 +222,6 @@ void cli_dos_error(struct cli_state *cli, uint8_t *eclass, uint32_t *ecode);
 int cli_status_to_errno(NTSTATUS status);
 int cli_errno(struct cli_state *cli);
 bool cli_is_error(struct cli_state *cli);
-bool cli_is_nt_error(struct cli_state *cli);
 bool cli_is_dos_error(struct cli_state *cli);
 bool cli_state_is_connected(struct cli_state *cli);