1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

libsmb: Remove unused cli_is_nt_error()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2023-09-22 17:50:19 -07:00 committed by Jeremy Allison
parent aaf5821dac
commit 2399b105fe
2 changed files with 0 additions and 13 deletions

View 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)

View 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);